Commit Graph

74 Commits

Author SHA1 Message Date
Demian
435ad606fa sticker: finish stickers api 2024-02-28 16:57:18 +01:00
david
4cce303fbc bot,api: fix stop channel race 2024-02-20 22:14:34 +01:00
Demian
92739f1414 api: always specify allowed_updates in getUpdates 2023-03-07 20:27:42 +02:00
Demian
d90e8974cc telebot: restructure and refactor 2022-10-06 00:45:27 +03:00
Demian
4da4605bec api: move verbose logging out 2022-10-05 00:47:25 +03:00
JSP
8ec2c93e17 Cancel Raw() call immediately without waiting for the request's timeout when bot is about to stop.
This may become important if doing long polling with long timeout.
2022-06-24 18:36:29 +03:00
swithek
96c9c520b3 bot: block until poller exits 2022-02-05 13:09:37 +00:00
Demian
be2933a4fa all: use errors from the standard library 2022-01-22 19:42:45 +02:00
Demian
1c916042ee util: simplify sendObject calls 2021-11-07 19:31:43 +02:00
Demian
0463e22543 telebot: rework media, implement Media and Inputtable interfaces 2021-11-07 18:28:21 +02:00
Demian
5a1a187e87 telebot: clarify and fix all naming issues 2020-06-19 23:36:43 +03:00
Aofei Sheng
a76047869f api: make sure io.Pipe in sendFiles will be closed 2020-06-16 02:35:18 +08:00
Aofei Sheng
8b48346206 api: fix a huge memory allocation caused by sendFiles 2020-06-13 04:11:35 +08:00
Demian
e1811e100a tests: implement more 2020-06-09 23:28:28 +03:00
Demian
09b2f90c72 api: prettify verbose mode output 2020-06-09 22:26:28 +03:00
demget
29af30f5ee
Merge branch 'develop' into verbose-mode 2020-06-09 19:09:23 +03:00
Demian
98a898f4c7 bot: add default parse mode feature 2020-06-07 23:12:49 +03:00
danch
75901ba211 fix: replace token in verbose log 2020-05-31 15:24:22 +03:00
danch
092eb11418 bot: add verbose mode 2020-05-31 15:00:30 +03:00
Demian
0910baadba bot: update poller fields 2020-04-26 20:43:17 +03:00
Demian
5c1986f5b5 telebot: a lot of refactor and clean-ups 2020-04-26 18:19:49 +03:00
unknown
e5789a08bb Refactor unexported code 2020-04-06 16:04:25 +03:00
unknown
60ae6d2cf6 Change errors wrapping in Raw 2020-04-05 22:41:05 +03:00
unknown
f201a9f4ba Update getMe function 2020-04-05 21:29:45 +03:00
unknown
ce43c6a8a2 Refactor code, fix code style issues 2020-04-05 20:23:51 +03:00
Artem
d821e6b78d go fmt 2020-03-28 03:28:28 +00:00
Artem
86209d10af errors: removed excessive debug statements 2020-03-28 03:27:36 +00:00
Artem
97291ef25b errors: switch differentiation in bot.Raw() 2020-03-28 03:26:26 +00:00
Viktor Oreshkin
cbcedf0c92 Fix sendFiles reader leak 2019-12-26 02:03:10 +03:00
demiangetman
8001defa0c Add custom file name support for media 2019-09-30 18:57:54 +03:00
Arseny Mitin
83aacd12ee refactor: avoid using fmt.Sprintf for performance 2019-09-17 10:05:21 +03:00
Viktor Oreshkin
273a40e72a Send thumbnails (but not in albums) 2018-12-16 02:54:29 +03:00
Anton Kucherov
538b671e6a fix #173 add custom Telegram api url 2018-12-13 01:45:03 +03:00
Viktor Oreshkin
629fe58962 Add File creation from io.Reader (fix #137)
Refactor sendFiles to accept Files
2018-10-11 14:39:07 +03:00
sigurniv
5f938b2a7a add option to pass custom http.Client to tb.NewBot() in case of proxying and other needs 2018-04-18 16:42:18 +03:00
Jonas Bögle
f2812ea814
simplified unnecessary if
You can remove this if and just directly return err since it's nil if there is no error
2017-12-25 13:07:57 +01:00
Pavel Makarenko
1175eafe1c Fixed for in loop 2017-12-25 14:50:21 +03:00
Ian Byrd
4f400f035e
Raw() method introduced. KeyboardButton -> ReplyButton. 2017-11-29 00:15:50 +02:00
Ian Byrd
83eb527fe5
Albums added, this commit resolves #103. 2017-11-25 16:22:13 +02:00
Ian Byrd
43be06e850
NewBot, Settings, Poller, LongPoller - new bot creation API. 2017-11-21 01:41:39 +02:00
Ian Byrd
2f62e39c40
Sending photos by URL. 2017-11-18 20:33:20 +02:00
Ian Byrd
7316e92265
Viva la File, my boys, viva la File! 2017-11-18 20:16:16 +02:00
Ian Byrd
dbc2cd7f6d
Massive refactoring and file structure changes.
- Callback structs has been moved to callbacks.go
- User / Chat and its methods -> chat.go
- Concept of Editable and Message Signature introduced
- No more types.go, it's been refactored into media.go + friends
2017-11-18 15:06:20 +02:00
Ian Byrd
e1f4f1b228
Thumbnail -> Photo, new types supported: Voice, VideoNote. 2017-11-17 15:10:18 +02:00
Ian Byrd
ef59af6db7
Introducing Sendable interface (see #93.)
This commit refactors lots of duplicated code from bot.go, so
instead of having N redundant SendX methods, now it's the
responsibility of all Sendable objects to implement Send(..)
instead. Impl in types_send.go, 150 LOC only!
2017-11-17 08:20:36 +02:00
Ian Byrd
a1a2c92dad
This commit refactors error handling throughout the library.
Bot.Errors channel has been introduced. It can be used to
debug Telebot. It also fixes sendFile() which used to upload
with its own custom http.Client instead of http.DefaultClient.
2017-08-15 16:44:01 +03:00
Ian Byrd
95901bcfc3
Minor time conversion change within private API. 2017-08-15 15:09:04 +03:00
Ian Byrd
14151d8a26 Revert "Bots now support custom HTTP clients (*http.Client)."
This reverts commit c8e1ac037f.
2017-08-11 05:29:55 +03:00
Ian Byrd
c8e1ac037f
Bots now support custom HTTP clients (*http.Client). 2017-08-03 02:14:18 +03:00
Ian Byrd
fedfe0d5f9 Switching to int64 update queries, resolves #16 hopefully. 2016-11-10 01:34:57 +02:00