@@ -24,7 +24,7 @@ proc sendMessage*(b: TeleBot, chatId: int, text: string, disableWebPagePreview =
24
24
let res = makeRequest (endpoint, data)
25
25
result = parseMessage (res)
26
26
27
- proc forwardMessage * (b: TeleBot , chatId: int , fromChatId: int , messageId: int ): Message =
27
+ proc forwardMessage * (b: TeleBot , chatId: int , fromChatId: int , messageId: int ): Message =
28
28
let endpoint = API_URL % [b.token, " forwardMessage" ]
29
29
var data = newMultipartData ()
30
30
data[" chat_id" ] = $ chatId
@@ -34,7 +34,7 @@ proc forwardMessage*(b: TeleBot, chatId: int, fromChatId: int, messageId: int):
34
34
let res = makeRequest (endpoint, data)
35
35
result = parseMessage (res)
36
36
37
- proc sendFile (b: TeleBot , m: string , chatId: int , key, val: string , resend = false , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
37
+ proc sendFile (b: TeleBot , m: string , chatId: int , key, val: string , resend = false , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
38
38
let endpoint = API_URL % [b.token, m]
39
39
40
40
var data = newMultipartData ()
@@ -61,22 +61,22 @@ proc sendFile(b: TeleBot, m: string, chatId: int, key, val: string, resend = fal
61
61
let res = makeRequest (endpoint, data)
62
62
result = parseMessage (res)
63
63
64
- proc sendPhoto * (b: TeleBot , chatId: int , photo: string , resend = false , cap = " " , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
64
+ proc sendPhoto * (b: TeleBot , chatId: int , photo: string , resend = false , cap = " " , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
65
65
result = b.sendFile (" sendPhoto" , chatId, " photo" , photo, resend, rtmId, rM)
66
66
67
- proc sendAudio * (b: TeleBot , chatId: int , audio: string , resend = false , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
67
+ proc sendAudio * (b: TeleBot , chatId: int , audio: string , resend = false , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
68
68
result = b.sendFile (" sendAudio" , chatId, " audio" , audio, resend, rtmId, rM)
69
69
70
- proc sendDocument * (b: TeleBot , chatId: int , document: string , resend = false , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
70
+ proc sendDocument * (b: TeleBot , chatId: int , document: string , resend = false , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
71
71
result = b.sendFile (" sendDocument" , chatId, " document" , document, resend, rtmId, rM)
72
72
73
73
proc sendSticker * (b: TeleBot , chatId: int , sticker: string , resend = false , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
74
74
result = b.sendFile (" sendSticker" , chatId, " sticker" , sticker, resend, rtmId, rM)
75
75
76
- proc sendVideo * (b: TeleBot , chatId: int , video: string , resend = false , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
76
+ proc sendVideo * (b: TeleBot , chatId: int , video: string , resend = false , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
77
77
result = b.sendFile (" sendVideo" , chatId, " video" , video, resend, rtmId, rM)
78
78
79
- proc sendLocation * (b: TeleBot , chatId: int , lat, long: float , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
79
+ proc sendLocation * (b: TeleBot , chatId: int , lat, long: float , rtmId = 0 , rM: KeyboardMarkup = nil ): Message =
80
80
let endpoint = API_URL % [b.token, " sendLocation" ]
81
81
82
82
var data = newMultipartData ()
0 commit comments