Omar Polo
4030287b64
implements voice chat started/ended/partecipantsinvited
4 years ago
Demian
c602a3df68
message: add missed forward fields
4 years ago
Demian
e1811e100a
tests: implement more
4 years ago
Demian
dc9db44c81
message: add via_bot field
4 years ago
Demian
7a1d59c7d9
payments: SuccessfulPayment and minor changes
4 years ago
Demian
525f94ff6a
message: update message types
5 years ago
Demian
9087ce99d0
message: some clean-ups
5 years ago
dande
9268c6dff7
dice: added constants
5 years ago
dande
3915e8596b
dice: fixed dice handling
5 years ago
dande
ab0c9a7060
dice: added dice support
5 years ago
Demian
9b11223d56
bot: complete Polls 2.0 API
5 years ago
Eugene Bravov
bd69a13f32
Add animation to maeesage
5 years ago
Viktor Oreshkin
a770d6d951
Fix typos and misspells
5 years ago
demiangetman
11b34b3857
Add ReplyMarkup field to Message
5 years ago
demiangetman
53bfa49b78
Fill callback inline message on update
5 years ago
Ian Byrd
bda24d8650
Possibly breaking some builds, but inline message IDs won't work
...
otherwise.
7 years ago
Jonas Bögle
933b28f94e
fixed IsForwarded()
...
reverts a tiny change from dbc2cd7f6
, we need to check both fields because:
- m.OriginalChat is nil when message is not forwarded from a channel
- m.OriginalSender can be nil if the message is forwarded from a channel
(doc: https://core.telegram.org/bots/api#message )
7 years ago
Ian Byrd
4cf58f4c5b
Automatic command payload handling.
7 years ago
Ian Byrd
d6ef68605b
Complete list of endpoints is now supported (see const.)
7 years ago
Ian Byrd
83eb527fe5
Albums added, this commit resolves #103 .
7 years ago
Ian Byrd
79dccd7227
Endpoints for media introduced, Message.From -> Message.Sender
7 years ago
Ian Byrd
9aad0c4faa
OnAddedToGroup introduced.
7 years ago
Ian Byrd
2173ce9ad6
Documentation
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
7316e92265
Viva la File, my boys, viva la File!
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
e1f4f1b228
Thumbnail -> Photo, new types supported: Voice, VideoNote.
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
irgendwer / Jonas
12099b9b19
support for forwarded messages from channels
...
This would fix the problem that forwarded messages from channels don't get detected as forwarded and allows you to get the chat id of the channel the message was originally posted to.
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
Ahmadreza Zibaei
30d20b61f4
Caption added in Message struct
8 years ago
Vlad Lukyanov
15e5df6636
Add MessageEntity support
8 years ago
Ian Byrd
68ad7fd5dc
Hotfixing the bug introduced by jerks from Telegram:
...
>Renamed the fields new_chat_participant and left_chat_participant
>of the Message object to new_chat_member and left_chat_member.
via https://core.telegram.org/bots/api#recent-changes
9 years ago
Ian Byrd
061a651188
This commit adds an inline mode implementation and resolves #28 .
...
Only article results supported so far.
9 years ago
Ronmi Ren
5a47937cc1
Support new service message types about channel creation and supergroup migration.
9 years ago
Ilya Kowalewski
72ce8fae88
Fixing #21 issue, introducing Recipient interface
9 years ago
Ilya Kowalewski
74d63a4754
Merging #20 into tucnak:master from aladine:patch-3
9 years ago
Anton Volodin
faeff79108
DRY condition fix
9 years ago
Anton Volodin
e9e91531ad
A little code bloat fix
9 years ago
Ilya Kowalewski
eaf9b17a54
Achieving final satisfaction with golint
9 years ago
Ilya Kowalewski
5da873e39b
Fix for even more lint warnings
9 years ago
Ilya Kowalewski
e041242bb2
Fixed a bunch of lint issues
9 years ago
Ilya Kowalewski
d2435c4688
Message forwarding
9 years ago
Ilya Kowalewski
43bbb6b396
All message types and replying/forwarding from API covered.
9 years ago
Ilya Kowalewski
fa51650dad
A little more documentation, code cleanup
9 years ago