TGCacheGetChatName - Sreyas-Sreelal/tgconnector GitHub Wiki

TGCacheGetChatName

  • Description

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

  • Parameters

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

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

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

    This function is only usable in callbacks.