Commit Graph

21 Commits

Author SHA1 Message Date
Sebastian Schepens
587ba1a4dc
add AnswerCallbackQuery 2016-07-25 19:09:18 -03:00
Vlad Lukyanov
15e5df6636 Add MessageEntity support 2016-07-11 00:09:42 +05:00
Vlad Lukyanov
977e1d90f3 gofmt 2016-07-04 19:48:20 +05:00
Vlad Lukyanov
4b79f3ff1b merge with upstream 2016-07-04 15:56:53 +05:00
Nick Groenen
46992b037b Improve support for inline queries
These changes make it possible to set custom options when responding to
inline queries, as described on
https://core.telegram.org/bots/api#answerinlinequery.

It also includes all the (non-cached) inline result types as described
at https://core.telegram.org/bots/api#inlinequeryresult.

Some remarks:
* The internals of sendCommand have changed. It now expects a
  JSON-serializable object. Instead of doing GET requests with
  URL-encoded query parameters it now POSTS JSON directly.
* Because of the above, sendFile() has changed as well. It now expects a
* `map[string]string` which it will internally convert to URL encoded
  form values.
* Respond has been deprecated in favor of the new AnswerInlineQuery
  function. It is only kept for backward compatibility.
* A dependency on https://github.com/mitchellh/hashstructure has been
  introduced in order to generate automatic IDs for inline results.
2016-06-26 16:33:16 +02:00
Steven Berlanga
4b2c1f976c adding documentation to callback struct 2016-05-25 09:53:01 -04:00
Vlad Lukyanov
0a92c6c68b Added Venue message support by calling SendVenue(recipient Recipient, venue *Venue, options *SendOptions) 2016-05-24 09:43:16 +05:00
Steven Berlanga
72e84f5ab5 Adding support for inline keyboard buttons 2016-04-29 18:20:50 -04:00
Ian Byrd
061a651188
This commit adds an inline mode implementation and resolves #28.
Only article results supported so far.
2016-01-22 13:38:45 +02:00
Ronmi Ren
143777fbe0 Channel support and change chat_id size
* Chage signature of "Destination()", because we need send username in "chat_id" when
  sending message to channel.
* By telegram API document, chat id is "not exceeding 1e13 by absolute value" which
  needs int64 to store it.
2015-12-24 16:51:42 +08:00
Ian Byrd
4103e705b0
Fixing critical API issue; resolves #26 2015-12-05 11:40:55 +02:00
Ilya Kowalewski
72ce8fae88 Fixing #21 issue, introducing Recipient interface 2015-10-17 01:36:07 +03:00
Ilya Kowalewski
74d63a4754 Merging #20 into tucnak:master from aladine:patch-3 2015-10-16 19:36:20 +03:00
Anton Volodin
e38f2bd56c Another code bloat fixes 2015-10-13 17:38:15 +03:00
Ilya Kowalewski
40c91ee0b4 Added some API and tests 2015-07-06 20:12:08 +03:00
Ilya Kowalewski
eaf9b17a54 Achieving final satisfaction with golint 2015-07-06 19:27:57 +03:00
Ilya Kowalewski
e041242bb2 Fixed a bunch of lint issues 2015-07-03 21:58:29 +03:00
Ilya Kowalewski
6a4863ece8 Sending photos, API improvements 2015-07-02 21:39:39 +03:00
Ilya Kowalewski
d2435c4688 Message forwarding 2015-07-02 12:55:40 +03:00
Ilya Kowalewski
43bbb6b396 All message types and replying/forwarding from API covered. 2015-06-27 20:37:22 +03:00
Ilya Kowalewski
fa51650dad A little more documentation, code cleanup 2015-06-27 18:55:12 +03:00