Releases: Sreyas-Sreelal/tgconnector
Releases · Sreyas-Sreelal/tgconnector
1.1.1
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
- 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
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
- fixed some synchronization issue
0.3.1
- Updated the rust sdk to latest version that fixes the issue of samp-gdk conflict occurred randomly for some people.
0.3.0
0.2.0
- Added support for MarkdownV2
- Minor code improvements
0.1.1
- updated to latest sdk
- added optional parameter
thread_limit
for nativesTGConnect
andTGConnectFromEnv
0.1.0
- Channel updates are now serialized correctly.
- New callback
OnTGChannelPost
has been added.
0.0.1
First release for testing purpose