TGGetChatTitle - Sreyas-Sreelal/tgconnector GitHub Wiki

TGGetChatTitle

  • Description

    Function to get title of a chat

  • Parameters

    • TGBot:bot - bot instance id
    • TGChatId:chatid[] - id of chat
    • title[] - array to store title
    • size - size of title
  • Returns

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

     new TGBot:bot = TGConnect("your_bot_token_here");
     new TGChatId:chatid[] = "-1001445898764";
     new title[132];
     TGGetChatTitle(g_bot,chatid,title);