Skip to content

TGCacheGetUserFirstName

__SyS__ edited this page Jan 21, 2019 · 3 revisions

TGCacheGetUserFirstName

  • Description

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

  • Parameters

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

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

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

    This function is only usable in callbacks.

Clone this wiki locally