Commit Graph

200 Commits (46de48a28b47320f219817ffcbe527f22891e157)

Author SHA1 Message Date
dande 3915e8596b dice: fixed dice handling 5 years ago
Demian 299838450e tests: implement b.EditReplyMarkup() function test 5 years ago
Demian 4e2f28c4f3 bot: implement editMessageLiveLocation, update some documentation 5 years ago
Demian 1654a203ea bot: check recipient for nil to avoid panics 5 years ago
Demian 784432503e tests: implement b.Send() function test 5 years ago
unknown 51a26d93ce Refactor incomingUpdate function 5 years ago
unknown e5789a08bb Refactor unexported code 5 years ago
unknown 4cab32f46e Fire OnPinned for channel post (closes #244) 5 years ago
unknown fcff7569ac Implement bot Handle and Start functions tests 5 years ago
unknown 32de86819c Update Handle documentation 5 years ago
unknown ce43c6a8a2 Refactor code, fix code style issues 5 years ago
Nikita Bikmaev 66e7021870 Move a code to sendable.go and update the README.md 5 years ago
Nikita Bikmaev 4b74a0ebcc Fix documentation 5 years ago
Nikita Bikmaev 69f0836940 Implement sendPoll method 5 years ago
Ian Patrick Badtrousers 3458aeb2e7 Revert "MarkdownV2 as default, use MarkdownLegacy for old-fashioned MD."
This reverts commit 12299becfa.
5 years ago
Ian Patrick Badtrousers 12299becfa MarkdownV2 as default, use MarkdownLegacy for old-fashioned MD. 5 years ago
Mikhail Borovikov 9852df39ae Add support parse_mode for albums photo 5 years ago
Tobias Tangemann b6c3367fed Fix OnMigration handler haven from=0 (#245)
Fixes tucnak/telebot/issues#187
5 years ago
Viktor Oreshkin baa616bc00 EditMedia: Fix possible thumb attach name conflict 5 years ago
Viktor Oreshkin ddbfc934ff rename FileJson to FileJSON to make linter happy 5 years ago
Viktor Oreshkin f4d7467b6e Rewrite IfElseChain to switch 5 years ago
Viktor Oreshkin 24589f3665 remove unused function (*Bot).handleCommand 5 years ago
Viktor Oreshkin a67e593e35 GetFile: use b.client, check status code 5 years ago
Viktor Oreshkin 6cf54c1557 Improve some loops (use copy, style fix) 5 years ago
Viktor Oreshkin a770d6d951 Fix typos and misspells 5 years ago
Viktor Oreshkin 10b553411d Add options to EditCaption (incl ParseMode) (#230) 5 years ago
demiangetman a855bcb241 Fix possible EditMedia sendOpts nil dereference 5 years ago
demiangetman 921282a488 Add ParseMode option support to EditMedia 5 years ago
Viktor Oreshkin ca2149b44f Handle audio thumbnail in EditMedia 5 years ago
demiangetman 53bfa49b78 Fill callback inline message on update 5 years ago
demiangetman 97589a3d9e Add options to EditCaption 5 years ago
demiangetman 366e68b072 Implement EditReplyMarkup 5 years ago
Arseny Mitin 83aacd12ee refactor: avoid using fmt.Sprintf for performance 5 years ago
evgendn 240965f18d Add stickers methods 5 years ago
Ian Byrd 9b714b274c reducing excessive deffered calls 6 years ago
Ian Byrd 42933c1912 small fixes, go.{mod,sum} 6 years ago
Ian Byrd 85ee746b3c
Merge pull request #194 from 23rd/patch-1-edit-media
Added support for editMessageMedia.
6 years ago
robatioor 5601dd0354 add method GetFile and refactor code 6 years ago
23rd c7451550a3 Added support for editMessageMedia.
- Fixes #184.
6 years ago
Ian Byrd 7eeea8f32a
Payment API minimal implementation. 6 years ago
Anton Kucherov 538b671e6a fix #173 add custom Telegram api url 6 years ago
Ian Byrd 2adea7c8be
Merge pull request #163 from stek29/filereader
Add File creation from io.Reader (fix #137)
6 years ago
Viktor Oreshkin ec2090d300 Dont panic in Bot.Send, just return error 6 years ago
Viktor Oreshkin 629fe58962 Add File creation from io.Reader (fix #137)
Refactor sendFiles to accept Files
6 years ago
Viktor Oreshkin fd3c84fce1 Embed optional fields in SendAlbum 6 years ago
Ian Byrd b59ea4aec3
Merge pull request #146 from aprosvetova/patch-1
fixed wrong method name
6 years ago
Ian Byrd 89d8b20796
Merge pull request #141 from igorcoding/patch-1
Fix incorrect parsing of ChannelPrivate chat
6 years ago
Ulrich Schreiner 97e78127ad
fix lint errors in current code 6 years ago
Anna Prosvetova fc1a751391
fixed wrong method name 6 years ago
igorcoding 111bf7658b
Fix incorrect parse of channelprivate Chat type 6 years ago
Andrey Sevrikov 10a33dd585 Fix voice handlers not firing 7 years ago
sigurniv 78f08282d7 fixed indentation 7 years ago
sigurniv 5f938b2a7a add option to pass custom http.Client to tb.NewBot() in case of proxying and other needs 7 years ago
Giovanni Spera 5513a66463 Fixed could not send message to private channel 7 years ago
Ian Byrd 3f24832170 Fix for a silly typo. 7 years ago
Ian Byrd bda24d8650 Possibly breaking some builds, but inline message IDs won't work
otherwise.
7 years ago
Ian Byrd f704eefacf ChosenInlineResult. 7 years ago
Ian Byrd 426f436905
Fix for data-less inline buttons. 7 years ago
Ian Byrd bdd5916b83
Callbacks fixed for both button types. 7 years ago
Martin Ottenwaelter 6adfa4be13 Fixes a nil pointer dereference by checking a nil value for the
OnAddedToGroup handler.
7 years ago
Ian Byrd 77d1ba9eb1 Inline mode fix. 7 years ago
Ian Byrd 4f400f035e
Raw() method introduced. KeyboardButton -> ReplyButton. 7 years ago
Ian Byrd 38298d3e9d
Reporter: protection from in-handler panics. 7 years ago
Ian Byrd 4cf58f4c5b
Automatic command payload handling. 7 years ago
Ian Byrd 5a73cee70a
Handle() now supports keyboard buttons as endpoints. 7 years ago
Ian Byrd 119a4e1698
Modified poller API, fixes #106. 7 years ago
Ian Byrd 3329d98249
Completing regular API now. 7 years ago
Ian Byrd 2a1158c03a Revert "Protecting callbacks with callback guards."
This reverts commit 6f068bdacb.
7 years ago
Ian Byrd 31f0da895e
Graceful shutdown with Stop(), resolves #99, #105 7 years ago
Ian Byrd 6f068bdacb
Protecting callbacks with callback guards. 7 years ago
Ian Byrd eae6345b88
InlineButton became endpoint (callback handling.) 7 years ago
Ian Byrd d6ef68605b
Complete list of endpoints is now supported (see const.) 7 years ago
Ian Byrd af9f8f00da
Pin/Unpin methods added. 7 years ago
Ian Byrd 83eb527fe5
Albums added, this commit resolves #103. 7 years ago
Ian Byrd 33e1846abd
Download() introduced. 7 years ago
Ian Byrd 79dccd7227
Endpoints for media introduced, Message.From -> Message.Sender 7 years ago
Ian Byrd 612ab345bd Improved inline API. TODO proper result types. 7 years ago
Ian Byrd 9aad0c4faa
OnAddedToGroup introduced. 7 years ago
Ian Byrd 091bbc9a13 Administration tools, this resolves #43. 7 years ago
Ian Byrd b4bec5b6f7
Command routing fix. 7 years ago
Ian Byrd ddc9f75fb2
More documentation, little code changes. 7 years ago
Ian Byrd 52892914f3
Security measure: ignoring all messages starting with \a 7 years ago
Ian Byrd 337be69aa3
Routing system: final touches! 7 years ago
Ian Byrd 0cf9b9a101
Routing: Handle() and Endpoint introduced. 7 years ago
Ian Byrd ba575e72e1
Start(), Update now supports edited messages / channel posts. 7 years ago
Ian Byrd 43be06e850
NewBot, Settings, Poller, LongPoller - new bot creation API. 7 years ago
Ian Byrd 0f1d521167
Cleanup, documentation, bikeshedding. 7 years ago
Ian Byrd d5e4082eaf
New Edit() and EditCaption() methods are taking over.
IMO, we shouldn't be introducing distinct EditText/EditMarkup
methods because it just doesn't make sense, you can do both in
one and EditCaption is a pretty odd case so we live it be.
7 years ago
Ian Byrd ff0015f004
Good news Edit() now works for all Editable text messages! 7 years ago
Ian Byrd b6938a118c
Telebot now compiles! :-) 7 years ago
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
7 years ago
Ian Byrd a8671a839d
More refactoring, API rethinking. 7 years ago
Ian Byrd 3cf300d59d
Documentation for latest changes. 7 years ago
Ian Byrd 6eec63ddbb
Delete() has been added. 7 years ago
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!
7 years ago
Ian Byrd 127bf18d79
Optimizes SendOptions / ReplyMarkup. 7 years ago
Ian Byrd d8b3194888 Message: optionals are now stored by-pointer, saving 67.4% of mem.
This is a breaking change! Reducing memory usage from 1544 bytes
down to 504 bytes on 64-bit system. Considering Message is the
most used Telebot type, it's a pretty big deal.

Also, now we finally can test optional fields against nil!
7 years ago
Ian Byrd 4857ac8b9d
Whoops, fixing the merged code according to new API. 7 years ago
Ian Byrd 8128e90034
Merging #79 into 'v2'.
This commit breaks telebot API by introducing message edits and
changing return values for existing Send* methods.
7 years ago
Ian Byrd b19ffa1b45
Experimental handlers API added. 7 years ago