Commit Graph

108 Commits (b4d9865c2b275606dbf4d84113b327dcc4a3aa62)

Author SHA1 Message Date
Ilya Kaznacheev b4d9865c2b
Add chat type documentation 2020-10-24 13:36:41 +03:00
Ilya Kaznacheev e6fdc8e02a
Add user type documentation 2020-10-24 13:34:34 +03:00
Ilya Kaznacheev 152625538f
Add message documentation 2020-10-19 00:09:50 +03:00
bcmk 4a2c8c4547 setMyCommands implemented 2020-09-27 02:08:56 +04:00
vdimir dadb760cde
Add missing message fields
media_group_id
author_signature
via_bot
2020-08-20 20:59:20 +03:00
TJ Horner 5ebb3edeff feat: Add CustomTitle field to ChatMember 2020-08-10 17:17:07 -04:00
Syfaro 7a018ae873
Merge pull request #299 from yi-jiayu/webhook-info-max-connections
Add MaxConnections to WebhookInfo
2020-07-21 03:39:01 -05:00
Jiayu Yi 64517d16e7 Mark WebhookInfo.MaxConnections as optional 2020-07-21 16:33:33 +08:00
Syfaro aea186240d
Merge pull request #292 from blasphemy/inline-sticker
add ability to respond to inline queries with stickers
2020-07-21 02:42:48 -05:00
mehanizm f11e1caecf feat: add sendDice configs
Add sendDice config to use in Send method
as a Chattable interface.
Add NewDice and NewDiceWithEmoji helpers
Add tests

https://core.telegram.org/bots/api#senddice
2020-07-21 10:25:30 +03:00
Kirill Zhuharev 7434b0456e
Merge pull request #328 from mendelmaleh/captionparsemode
Add ParseMode to InlineQueryResultPhoto
2020-05-24 13:53:06 +03:00
maria.bagdasarova 74925cfcaf Fix nil pointer on User String method 2020-05-22 11:42:19 +03:00
Mendel E 303a66f022 Add ParseMode to InlineQueryResultPhoto 2020-04-26 00:30:21 -04:00
Kirill Zhuharev 5e339ed016
Merge pull request #301 from blasphemy/sticker-unique-id
add file_unique_id to Sticker struct
2020-03-19 07:26:09 +03:00
Daniel Leining f44d515f71 add getStickerSet call 2020-02-01 01:46:24 -05:00
Daniel Leining fd860fdd66 add file_unique_id 2020-01-24 00:19:42 -05:00
Daniel Leining 81ccf0a8b2 Merge remote-tracking branch 'upstream/master' into inline-sticker 2020-01-19 16:10:09 -05:00
Jiayu Yi 69bab9a28f Add MaxConnections to WebhookInfo 2020-01-13 15:42:35 +08:00
Syfaro aa124ef1e8
Merge pull request #294 from mkishere/inline-venue
Add inline venue type
2020-01-13 00:30:19 -06:00
Konstantin Chukhlomin 613005ba7b
Update types.go
Added IsAnimated to Sticker struct
2020-01-12 23:54:08 -05:00
mkishere 1f98cd2e47 Add inline venue type 2020-01-07 00:28:13 +08:00
Daniel Leining 87891c10fe add ability to respond to inline queries with stickers 2020-01-05 00:35:15 -05:00
Syfaro 87e7035a90
Merge pull request #227 from bcmk/passing-error-code
Passing error code
2019-04-24 04:32:50 -05:00
Syfaro e305b7a1f5
Merge pull request #223 from Mephistophiles/master
added PinnedMessage in Chat struct
2019-04-24 02:33:26 -05:00
Syfaro 9b191dba1e
Merge pull request #221 from yauhen-l/bugfix-omitempty-size-in-inline-gif-result
Mark optional fields in InlineQueryResultGif as omitempty
2019-04-24 02:32:30 -05:00
Syfaro 2f55ae3a3d
Merge pull request #219 from lzakharov/message-entity-helpers
Add type helpers to message entities.
2019-04-24 02:31:13 -05:00
Andrey Kuzmin ab4ab5e531 Add support for caption_entities in Message type.
caption_entities are using for messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption.
2019-04-09 14:32:23 +03:00
bcmk 016d6acdf3 Passing error code 2019-03-01 20:57:23 +04:00
Maxim Zhukov 0b788c7730 added PinnedMessage in Chat struct
Since BotAPI 3.3:
getChat now also returns pinned messages in supergroups, if present. Added the new field pinned_message to the Chat object.

Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
2019-02-12 22:00:57 +03:00
Yauhen Lazurkin 97a13fdf0f Complete definition of InlineQueryResultGIF to comply with Bot API 2019-01-24 09:45:45 +01:00
Yauhen Lazurkin 74b2a53293 Mark optional fields in InlineQueryResultGif as omitempty to not send zeros 2019-01-24 09:39:10 +01:00
Lev Zakharov fdf31c7cf4 Add type helpers to message entities. 2019-01-10 15:39:47 +03:00
Amir Khazaie fad189563c Merge branch 'master' of github.com:go-telegram-bot-api/telegram-bot-api 2018-10-15 12:28:43 +03:30
Syfaro 9105c34c59
Merge pull request #199 from treeder/master
Adds Passport update types
2018-10-08 01:20:17 -05:00
Syfaro 898e79fe47 Add initial support for sendMediaGroup. 2018-09-21 20:20:28 -05:00
Denis Orlikhin 0343f9ec27 Animation type support added 2018-09-06 15:46:02 +03:00
Travis Reeder 2326345451
Passport Updates (#1) 2018-09-04 10:52:52 -07:00
Amir Khazaie 31f4975464 Add cached types for inline query answer 2018-07-04 15:18:19 +04:30
Syfaro 212b154115
Merge pull request #169 from empetrone/add-sticker-pack-name
Parse sticker pack name
2018-04-28 13:50:02 -05:00
Emanuele Rocco Petrone 25ef323a6b Parse sticker pack name 2018-04-28 00:31:17 +02:00
Syfaro 309f2dd87f Minor code quality improvements. 2018-03-26 11:54:02 -05:00
Behrang Noruzi Niya 04f51c3251 Add response parameters to error messages 2018-03-04 14:40:17 +03:30
Robert Vollmert f8145e3a68 reply_markup is optional for InlineQueryResultGame 2018-01-11 22:41:45 +01:00
Zaur Abdulgalimov bd1aa7e6ef User:IsBot & RestrictChatMember:UntilDate 2017-11-09 18:41:22 +03:00
Henner 5f5f94047c Rewrite message command methods to use entities
Since the Telegram-API considers "/foo-bar" to be a command entity
"/foo", we had choose a behaviour for the
CommandArguments() method.
The specification (https://core.telegram.org/bots#commands) mandates a
space after the command name, so we decided to skip the first character
following the command entity.
However, Telegram clients render "/foo-bar" as if "/foo" was the command
and "-bar" additional text, so this alternative should be remembered.
2017-10-07 17:15:51 +02:00
Kataklysm 6d61ed4977 fix InlineKeyboardButton struct 2017-07-25 21:01:48 +03:00
Syfaro ebe7b8254e Merge pull request #105 from MrYadro/chat_member
Add new fields for ChatMember
2017-07-02 15:43:42 -05:00
MrYadro 32f5ed8433
new fields for Chat p2 2017-06-30 20:31:54 +07:00
MrYadro 0c8884bcba
new fields for Chat 2017-06-30 20:29:59 +07:00
MrYadro b4a811b756
new fields for ChatMember 2017-06-30 20:22:57 +07:00