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
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.
7 years ago
Ian Byrd
95901bcfc3
Minor time conversion change within private API.
7 years ago
Ian Byrd
14151d8a26
Revert "Bots now support custom HTTP clients (*http.Client)."
...
This reverts commit c8e1ac037f
.
7 years ago
Ian Byrd
c8e1ac037f
Bots now support custom HTTP clients (*http.Client).
7 years ago
Vlad Lukyanov
d2067e919f
changed InlineKeyboardMarkup to SendOptions where it needed
7 years ago
Vlad Lukyanov
15a4d8f413
Add meaasge edit feature
...
This commit may break some bots because changes in return of SendMessage
and SendPhoto functions
8 years ago
Ian Byrd
6360f1f7d9
Refactoring, poor BC, closes #44 and probably resolves #41 .
...
- EntityType and ChatType enums introduced.
- Documentation fixes, struct refactoring.
- Poor BC, poor BC...
8 years ago
Ian Byrd
d8b2ca1983
Fixes lots of complete bollocks that got into the codebase.
...
- Malformed JSON field tags, OMG fixed
- Making linters happy
- Foursquare_id -> FoursquareID, fuck BC
8 years ago
Ian Byrd
fedfe0d5f9
Switching to int64 update queries, resolves #16 hopefully.
8 years ago
Ian Byrd
e0d2195801
Partial refactoring of internals.
...
- GetChat and LeaveChat handle error descriptions
- Documentation fix for Result type
- Wrapping structs for IQRs go inside marshal funcs.
8 years ago