Syfaro
db88019230
Add support for Polls and other API 4.2 updates.
6 years ago
Vinicius Tinti
87f38fc084
Remove bot method StopReceivingUpdates()
...
The StopReceivingUpdates() was used to stop a goroutine created at
GetUpdatesChannel().
If StopReceivingUpdates() were called twice or if GetUpdatesChannel()
were called after a StopReceivingUpdates() the bot behavior would be
incorrect due to 'shutdownChannel' close.
This commit removes StopReceivingUpdates() and modifies UpdatesChannel
struct to have a Shutdown() method which can stop both the associated
goroutine and http handler to feed the updates channel.
Signed-off-by: Vinicius Tinti <viniciustinti@gmail.com>
7 years ago
Syfaro
fa40708257
Add SendMediaGroup method.
7 years ago
Syfaro
290b9363d4
Fix bot_test.go, update README.
7 years ago
Syfaro
a746f39d22
Move tests into tgbotapi package.
7 years ago
Syfaro
b6441c36ee
A number of small improvements.
7 years ago
Syfaro
898e79fe47
Add initial support for sendMediaGroup.
7 years ago
Syfaro
b728fa78fc
More various small code quality improvements.
7 years ago
Syfaro
309f2dd87f
Minor code quality improvements.
7 years ago
scnace
9b7184fa79
check telegram webhook tls handshake
8 years ago
Syfaro
72f87b43e3
Fix backwards compatibility for Live Location.
8 years ago
Syfaro
ac87082c55
Remove remaining methods that returned an APIResponse.
8 years ago
Syfaro
95a923dc4c
Update tests.
8 years ago
Syfaro
271adc4d97
Bot API 3.2, introduce Request to replace APIResponse methods.
8 years ago
Syfaro
e97c2417c9
Resolve some linter issues.
8 years ago
zhuharev
2022d04b94
fix tests, linter errors and fmt
8 years ago
pr0head
7031d820be
Added `live_period` for Location (tests)
8 years ago
Lord-Protector
cd9a9741d0
Create own supergroup with test already created bot and give it admin rights
8 years ago
Lord-Protector
3a60d28d73
Tests for PinChatMessage and UnpinChatMessage methods
8 years ago
Mohamad Jahani
bdb0f1f4c5
feat(bot): implement deleteMessage method
8 years ago
Arman
ecc60d21b7
Added VideoNote support
8 years ago
Syfaro
3293f3ad84
Change visibility of UpdatesChannel, closes #76
9 years ago
lupoDharkael
c034de512a
Added Clear() to examples and code simplification
9 years ago
Syfaro
0a57807db7
Additional changes for Telegram API updates.
9 years ago
Syfaro
13f31854a2
Clean up some formatting.
9 years ago
Maxim Martyanov
862c67342c
Rollback for backward compatibility, added NewInlineQueryResultArticleMarkdown and NewInlineQueryResultArticleHTML
9 years ago
Maxim Martyanov
0a1b57cdf9
Update bot_test.go for support updated NewInlineQueryResultArticle
9 years ago
Syfaro
217764ba45
Add new chat methods for Bot API 2.1.
9 years ago
Syfaro
e7b9f16e73
Add missing helpers, move helper tests to own file.
9 years ago
Syfaro
c0eb5db6c3
Add more tests.
9 years ago
Syfaro
b6130533a3
Add methods for editing messages.
9 years ago
Syfaro
14727677a5
Add example for responding to inline queries.
9 years ago
Syfaro
80e30d7c19
Stop returning useless http.Handler from ListenForWebhook.
9 years ago
Syfaro
2105871843
Update package name
10 years ago
Gleb Sinyavsky
d40f7f9703
Package name changed
10 years ago
Gleb Sinyavsky
f8cc0d2aaa
Bot::QuickSend removed
10 years ago
Gleb Sinyavsky
1a3e995b37
QuickSend method added to bot
10 years ago
Gleb Sinyavsky
eb6b784a5a
mime_type and file_size added for file messages
10 years ago
Gleb Sinyavsky
667b68e570
Package path changed before merge
10 years ago
Gleb Sinyavsky
5859ba3970
Small updates. Readme updated
10 years ago
Gleb Sinyavsky
2a5cf8652d
Updates channel removed from BotAPI
10 years ago
Gleb Sinyavsky
f8a3ac11b2
Small tests fix
10 years ago
Gleb Sinyavsky
653939995c
Test refactored
10 years ago
Gleb Sinyavsky
b8bc7b9939
Test example added
10 years ago
Gleb Sinyavsky
c4515aa388
Small fixes
10 years ago
Gleb Sinyavsky
207a1a08f2
Tests added
10 years ago
Gleb Sinyavsky
9644984dae
removeWebhook method added.
10 years ago
Gleb Sinyavsky
53dd9f6367
Fixes, tests improved
10 years ago
Gleb Sinyavsky
c67df95407
Tests added
10 years ago
Gleb Sinyavsky
a192540b8c
Many tests added. Small fixes
10 years ago