Skip to content

Commit

Permalink
parameter order changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sreyas-Sreelal committed Apr 16, 2020
1 parent 2c65797 commit 5d5c152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/tgconnector.inc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ enum TGUserStatus {
};

//basic
native TGBot:TGConnect(const token[],thread_limit=3,proxy[]="");
native TGBot:TGConnectFromEnv(const variable[],thread_limit=3,proxy[]="");
native TGBot:TGConnect(const token[],proxy[]="",thread_limit=3);
native TGBot:TGConnectFromEnv(const variable[],proxy[]="",thread_limit=3);
native TGSendMessage(TGBot:bot,const TGChatId:chatid[],const text[],TGMessage:reply_id=INVALID_MESSAGE_ID,TGParseMode:parse_mode=TGParseMode:-1,callback[]="");
native TGDeleteMessage(TGBot:bot,TGChatId:chatid[],TGMessage:messageid);
native TGEditMessage(TGBot:bot,TGChatId:chatid[],TGMessage:messageid,text[],TGParseMode:parse_mode=TGParseMode:-1);
Expand Down
2 changes: 1 addition & 1 deletion src/natives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ impl super::TgConnector {
&mut self,
_amx: &Amx,
token: AmxString,
thread_count: i32,
proxy_url: AmxString,
thread_count: i32,
) -> AmxResult<i32> {
let proxy_url = proxy_url.to_string();
let proxy_url = if proxy_url.is_empty() {
Expand Down

0 comments on commit 5d5c152

Please sign in to comment.