TGCacheGetUserName - Sreyas-Sreelal/tgconnector GitHub Wiki

TGCacheGetUserName

  • Description

    Function to get user name of user invoked an update,from active cache.

  • Parameters

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

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

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

    This function is only usable in callbacks.