Skip to content

Releases: Sreyas-Sreelal/tgconnector

1.1.1

09 Sep 12:39
Compare
Choose a tag to compare

Update to the latest Rust SDK, which resolves issues with Pawn Plus compatibility and problems related to packed strings. more info here

1.1.0

27 Apr 14:19
Compare
Choose a tag to compare
  • Add support to Cyrillic characters
  • Add option to disable webpage preview on TG_SendMessage
native TG_SendMessage(TGBot:bot,const TGChatId:chatid[],const text[],TGMessage:reply_id=INVALID_MESSAGE_ID,TGParseMode:parse_mode=TGParseMode:-1,bool:disable_web_page_preview=false,const callback[]="");
  • Add support for telegram topics/threads
forward OnTGMessage(TGBot:bot,TGUser:fromid[],TGMessage:messageid,TGTopic:messagethreadid);
  • New natives to ban, kick and unban users
native TG_BanChatMember(TGBot:bot,const TGChatId:chatid[],const TGUser:userid[],until_date=-1,bool:revoke_messages=true);
native TG_UnbanChatMember(TGBot:bot,const TGChatId:chatid[],const TGUser:userid[],only_if_banned=false);

1.0.0

19 Mar 14:03
Compare
Choose a tag to compare

Updated tgconnector to support latest telegram API changes.

Changelog

  • Deprecated following functions / callbacks

    • TGUser:TGGetBotUserId(TGBot:bot,TGUser:userid[],size = sizeof(userid));
    • TGUserStatus:TGGetUserChatStatus(TGBot:bot,const TGUser:userid,const TGChatId:chatid[]);
    • TGGetUserNameFromId(TGBot:bot,const TGUser:userid,const TGChatId:chatid[],username[],size=sizeof(username));
    • TGGetDisplayNameFromId(TGBot:bot,const TGUser:userid,const TGChatId:chatid[],displayname[],size=sizeof(displayname));
    • forward OnTGMessage(TGBot:bot,TGUser:fromid,TGMessage:messageid);
    • forward OnTGUserJoined(TGBot:bot,TGUser:userid);
    • forward OnTGUserLeft(TGBot:bot,TGUser:userid);
  • New natives / callbacks

    • TGUser:TG_GetBotUserID(TGBot:bot,TGUser:userid[],size = sizeof(userid));
    • TGUserStatus:TG_GetUserChatStatus(TGBot:bot,const TGUser:userid[],const TGChatId:chatid[]);
    • TG_GetUserNameFromID(TGBot:bot,const TGUser:userid[],const TGChatId:chatid[],username[],size=sizeof(username));
    • TG_GetDisplayNameFromID(TGBot:bot,const TGUser:userid[],const TGChatId:chatid[],displayname[],size=sizeof(displayname));
    • forward OnTGMessage(TGBot:bot,TGUser:fromid[],TGMessage:messageid);
    • forward OnTGUserJoined(TGBot:bot,TGUser:userid[]);
    • forward OnTGUserLeft(TGBot:bot,TGUser:userid[]);
  • Aliases for TG* natives

    native TGBot:TG_Connect(const token[],const proxy[]="",thread_limit=3);
    native TGBot:TG_ConnectFromEnv(const variable[],const proxy[]="",thread_limit=3);
    native TG_SendMessage(TGBot:bot,const TGChatId:chatid[],const text[],TGMessage:reply_id=INVALID_MESSAGE_ID,TGParseMode:parse_mode=TGParseMode:-1,const callback[]="");
    native TG_DeleteMessage(TGBot:bot,TGChatId:chatid[],TGMessage:messageid);
    native TG_EditMessage(TGBot:bot,const TGChatId:chatid[],const TGMessage:messageid,const text[],TGParseMode:parse_mode=TGParseMode:-1);
    
    native TG_GetChatMembersCount(TGBot:bot,const TGChatId:chatid[]);
    native TG_GetChatTitle(TGBot:bot,const TGChatId:chatid[],title[],size=sizeof(title));
    native TG_GetChatDescription(TGBot:bot,const TGChatId:chatid[],description[],size=sizeof(description));
    
    native TG_CacheGetUserFirstName(str[],size=sizeof(str));
    native TG_CacheGetUserLastName(str[],size=sizeof(str));
    native TG_CacheGetUserName(str[],size=sizeof(str));
    native TG_CacheGetChatName(str[],size=sizeof(str));
    native TG_CacheGetChatType(str[],size=sizeof(str));
    native TG_CacheGetChatID(TGChatId:str[],size=sizeof(str));
    native TG_CacheGetMessage(str[],size=sizeof(str));

    Wiki will be shortly updated!

0.3.2

12 Jul 03:18
Compare
Choose a tag to compare
  • fixed some synchronization issue

0.3.1

12 Jul 02:36
Compare
Choose a tag to compare
  • Updated the rust sdk to latest version that fixes the issue of samp-gdk conflict occurred randomly for some people.

0.3.0

27 Apr 15:34
Compare
Choose a tag to compare
  • Support for proxy is added (#2 , #3 )
native TGBot:TGConnect(const token[],const proxy[]="",thread_limit=3);
native TGBot:TGConnectFromEnv(const variable[],const proxy[]="",thread_limit=3);

0.2.0

07 Jan 15:08
Compare
Choose a tag to compare
  • Added support for MarkdownV2
  • Minor code improvements

0.1.1

14 May 05:07
Compare
Choose a tag to compare
  • updated to latest sdk
  • added optional parameter thread_limit for natives TGConnect and TGConnectFromEnv

0.1.0

22 Jan 06:59
Compare
Choose a tag to compare
  • Channel updates are now serialized correctly.
  • New callback OnTGChannelPost has been added.

0.0.1

21 Jan 04:07
Compare
Choose a tag to compare
0.0.1 Pre-release
Pre-release

First release for testing purpose