TGGetDisplayNameFromId - Sreyas-Sreelal/tgconnector GitHub Wiki

TGGetDisplayNameFromId

  • Description

    Function to get display name of a chat member from the specified userid and chatid.

  • Parameters

    • TGBot:bot - bot instance id
    • TGUser:userid - id of user
    • TGChatId:chatid[] - id of chat
    • displayname[] - array to store displayname
    • size - size of string
  • Returns

    • 1 on success
    • 0 on failure
  • Example

     new TGBot:bot = TGConnect("your_bot_token_here");
     new TGChatId:chatid[] = "562896556";
     new TGUser:userid = 562896556;
     new displayname[32];
     TGGetDisplayNameFromId(g_bot,userid,chatid,displayname);