Commit Graph

352 Commits (b401ef076d1ab044a2253284532a2b1456586609)

Author SHA1 Message Date
Henner c697a95948 Fix failing tests 2017-10-07 18:04:27 +02: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
Syfaro 9dda67c714 Merge pull request #115 from Lord-Protector/master
Add PinChatMessage and UnpinChatMessage methods
2017-08-05 22:56:32 -05:00
Lord-Protector cd9a9741d0 Create own supergroup with test already created bot and give it admin rights 2017-08-05 13:50:44 +03:00
Lord-Protector 3a60d28d73 Tests for PinChatMessage and UnpinChatMessage methods 2017-08-05 12:37:43 +03:00
Lord-Protector b24a37443a Add PinChatMessage and UnpinChatMessage methods 2017-08-05 12:29:06 +03:00
Syfaro 13c54dc548 Merge pull request #114 from Kataklysm/master
fix InlineKeyboardButton struct
2017-07-25 15:12:33 -05:00
Kataklysm 6d61ed4977 fix InlineKeyboardButton struct 2017-07-25 21:01:48 +03:00
Syfaro 3d983182a3 Merge pull request #111 from xrayid/master
Add exportChatInviteLink method
2017-07-17 13:35:43 -05:00
Mikhail Markov def5c3f6c9 Add exportChatInviteLink method 2017-07-17 20:48:51 +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
Syfaro c7a5e02799 Merge pull request #106 from MrYadro/chat_obj
New fields for Chat
2017-07-02 15:42:14 -05:00
MrYadro 4e059b5fbf
implement new methods for ChatMember 2017-07-01 11:34:09 +07: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
Syfaro b57800c534 Merge pull request #102 from mamal72/unban-chat-member-in-channels
Implement unban chat member for channels
2017-06-19 00:03:20 -05:00
Mohamad Jahani 12f3478326 feat(bot): implement unban chat member for channels 2017-06-18 21:34:17 +04:30
Syfaro d23f8e850e Merge pull request #100 from mamal72/implement-delete-message
Implement deleteMessage method
2017-06-08 14:07:35 -05:00
Mohamad Jahani bdb0f1f4c5 feat(bot): implement deleteMessage method 2017-06-08 14:02:05 +04:30
Syfaro 79b26b07c5 Merge pull request #97 from MrYadro/minor
Minor changes from 3.0 API update
2017-06-03 18:02:18 -05:00
MrYadro bedb16b2e0
minor changes 2017-06-03 21:19:09 +07:00
Syfaro c341d9cd91 Merge pull request #96 from MrYadro/payments
Payments API
2017-06-03 02:08:51 -05: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
Syfaro 5869b2f7f9 Merge pull request #94 from mamal72/add-language-code-to-user
Add language code to user struct
2017-05-23 02:53:20 -05:00
mamal f1ed87c281 feat(types): add language code to user struct 2017-05-22 12:40:04 +04:30
Syfaro afe64e63be Merge pull request #93 from Arman92/videonote
Added VideoNote support
2017-05-21 17:20:11 -05:00
Arman ecc60d21b7 Added VideoNote support 2017-05-22 02:34:12 +04:30
Syfaro baefeb3388 Merge pull request #90 from yanzay/master
[Fix #89] Add caption to Video params.
2017-05-14 16:28:23 -05:00
Alexey Grachov e4602014c7 [Fix #89] Add caption to Video params. 2017-05-14 12:11:44 +03:00
Syfaro 9f98d19464 Merge pull request #72 from uamana/FIX_error_handling
Fix returning APIResponse from SetWebHook
2017-04-19 15:44:18 -05:00
Syfaro ff42d6f7d1 Merge pull request #70 from Jeiwan/fix_voiceconfig_caption
Fix Caption in VoiceConfig
2017-04-19 15:38:50 -05:00
Syfaro 937de558bd Merge pull request #80 from polict/master
added 'caption' to document parameters
2017-04-19 15:37:58 -05:00
Syfaro 89bbb1edff Merge pull request #82 from davidmz/patch-1
Remove double call of strings.SplitN
2017-03-20 10:20:14 -05:00
Давид Мзареулян 963864785d Remove double call of strings.SplitN 2017-03-18 14:42:30 +03:00
pol 999653626b added 'caption' to document parameters 2017-02-11 15:13:49 +01:00
Syfaro f5c6a478a0 Allow specifying a custom buffer size for the updates channel 2017-01-27 11:40:09 -06:00
Syfaro f57724f783 Remove NewWebhookWithCertAndMaxConnections
This function is long and it is easy enough to just set the maximum
number of connections by modifying the returned struct.
2017-01-27 11:38:15 -06:00
Syfaro 3866c68e79 Add check for status code on request, closes #60 2017-01-27 11:35:23 -06:00
Syfaro 3293f3ad84 Change visibility of UpdatesChannel, closes #76 2017-01-26 11:43:37 -06:00
Sergey Juriev 5d28cf05d0 Fix returning APIResponse from SetWebHook 2017-01-18 12:05:01 +03:00
Syfaro 99170e2de4 Merge pull request #71 from Eternity-Yarr/upstream
Added max connections configuration option to SetWebHook
2017-01-17 10:04:37 -06:00
Dmitry V 833e457376 Added max connections configuration option to SetWebHook 2017-01-17 17:18:26 +03:00
Ivan Kuznetsov c0bffcdbba Fix Caption in VoiceConfig
`values()` and `params()` methods of `VoiceConfig` don't process `Caption` field.
2017-01-15 14:00:37 +07:00
Syfaro 80bdd621f7 Return APIResponse even with error in MakeRequest, closes #66. 2016-12-31 13:48:48 -06:00
Syfaro d74d1f3472 Merge pull request #65 from sschepens/fix_inline_keyboard_button
Fix InlineKeyboardButton type
2016-12-31 13:45:25 -06:00
Sebastian Schepens 71e0c25410
Fix InlineKeyboardButton type 2016-12-26 11:59:52 -03:00
Syfaro 3763be308e Merge pull request #64 from lupoDharkael/master
Added Clear() functionallity usage in examples and code simplification
2016-12-25 20:43:51 -06:00
lupoDharkael c034de512a Added Clear() to examples and code simplification 2016-12-16 02:07:54 +01:00