Commit graph

195 commits

Author SHA1 Message Date
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
cdcb93df5f No reason to use pointers to arrays. 2018-10-08 23:32:34 -05:00
Syfaro
4d758f17d4 Add some missing fields, generalize configs, remove unneeded methods. 2018-10-08 23:05:24 -05:00
Syfaro
23ed97b145 Merge master into develop. 2018-10-08 03:13:50 -05:00
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
6a6de7e674 Merge master into develop. 2018-03-26 12:22:16 -05: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
Syfaro
bb07769ea9 Bot API 3.5. 2017-12-29 13:22:53 -06:00
Syfaro
e840fa3b0f Finish Bot API 3.4. 2017-12-29 13:06:58 -06:00
Syfaro
4ec899a62e Merge remote-tracking branch 'pr0head/master' into develop 2017-12-29 12:56:31 -06:00
Syfaro
ef374648bf Bot API 3.3. 2017-12-29 01:17:15 -06:00
Syfaro
271adc4d97 Bot API 3.2, introduce Request to replace APIResponse methods. 2017-12-29 00:44:47 -06:00
Syfaro
e97c2417c9 Resolve some linter issues. 2017-12-28 23:17:32 -06:00
Zaur Abdulgalimov
bd1aa7e6ef User:IsBot & RestrictChatMember:UntilDate 2017-11-09 18:41:22 +03:00
pr0head
dffc002f9e Fix struct for InlineQueryResultLocation 2017-10-17 19:00:20 +03:00
pr0head
5cbecde819 Added editMessageLiveLocation and stopMessageLiveLocation methods 2017-10-14 01:05:24 +03:00
pr0head
65947daaab Added live_period for Location 2017-10-13 17:00:04 +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
MrYadro
bedb16b2e0
minor changes 2017-06-03 21:19:09 +07:00
MrYadro
41814af2a0
Fixes and comments 2017-06-03 13:59:40 +07:00
MrYadro
42d132b90a
Payments API 2017-06-03 03:18:42 +07:00
mamal
f1ed87c281 feat(types): add language code to user struct 2017-05-22 12:40:04 +04:30
Arman
ecc60d21b7 Added VideoNote support 2017-05-22 02:34:12 +04:30
Давид Мзареулян
963864785d Remove double call of strings.SplitN 2017-03-18 14:42:30 +03:00
Syfaro
3293f3ad84 Change visibility of UpdatesChannel, closes #76 2017-01-26 11:43:37 -06:00
Sebastian Schepens
71e0c25410
Fix InlineKeyboardButton type 2016-12-26 11:59:52 -03:00
lupoDharkael
66446d51ff Added updatesChannel type with Clear() method 2016-12-15 22:51:58 +01:00
Syfaro
0a57807db7 Additional changes for Telegram API updates. 2016-11-24 23:50:35 -06:00
Syfaro
f3a33ae6f1 Add support for games, among other updates. 2016-10-03 10:47:19 -05:00
Syfaro
217764ba45 Add new chat methods for Bot API 2.1. 2016-05-22 10:16:28 -05:00
Syfaro
3ed6b6ac16 EditedMessage to Update, EditDate to Message, User to MessageEntity. 2016-05-22 09:37:43 -05:00