Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

SCLib (Shifty Client Library)

SCLib is an API that allows you to work with the Shifty Messenger system. It operates using the SMD (Shifty Manifest Dispatch) protocol.

In essence, there is an appeal to the SMD converter itself, which already receives and processes the request and data. This library is multilingual, however, different versions have features and shortcomings, so it is worth using stable versions of the library.

connect string userid, string public_key

  await smd.connect(userid, public_key)
  // return Boolean

sendMessage string chatid, string message

  await smd.sendMessage(chatid, 'just a text')
  // return Boolean

setAvatar string file_key

  await smd.setProfileAvatar(file_key)
  // return Boolean

createPrivateChat string userid

  await smd.createPrivateChat(userid)
  // return Boolean

getChatInfo string chatid

  await smd.getChatInfo(chatid)
  // return Boolean or Array

uploadFile string | bytes binary_data

  await smd.uploadFile('any data even text')
  // return Array

getFile string file_key

  await smd.getFile('file_key')
  // return Bytes

searchChats string chatname, int offset, int limit

  await smd.searchChats(chatname, 0, 10)
  // return Boolean or Array

searchUsers string username, int offset, int limit

  await smd.searchUsers(username, 0, 10)
  // return Boolean or Array

getChats string last_chatid, int offset, int limit, boolean post_this_id

  await smd.getChats(last_chatid, 0, 10, false)
  // return Boolean or Array

getChat string chatid, string last_messageid, int offset, int limit, boolean post_this_id

  await smd.getChat(chatid, last_messageid, 0, 10, false)
  // return Boolean or Array

About

SCLib is an API that allows you to work with the Shifty Messenger system. It operates using the SMD (Shifty Manifest Dispatch) protocol.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages