Skip to content

TGCacheGetChatId

__SyS__ edited this page Jan 21, 2019 · 1 revision

TGCacheGetChatId

  • Description

    Function to get id of chat in which an update occured,from active cache.

  • Parameters

    • str[] - array to store chat id
    • size - size of title
  • Returns

    • On success - 1
    • On failure - 0
  • Example

     public OnTGMessage(TGBot:bot,TGUser:fromid,TGMessage:messageid) {
     	new chatid[34];
     	TGCacheGetChatId(chatid);
     }
  • Notes

    This function is only usable in callbacks.

Clone this wiki locally