TGCacheGetChatType - Sreyas-Sreelal/tgconnector GitHub Wiki

TGCacheGetChatType

  • Description

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

  • Parameters

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

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

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

    • This function is only usable in callbacks.

    • Type of chat can be either be “private”, “group”, “supergroup” or “channel”