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!