Ian Byrd
2adea7c8be
Merge pull request #163 from stek29/filereader
...
Add File creation from io.Reader (fix #137 )
2018-10-11 14:50:05 +03:00
Ian Byrd
1eb8f50279
Merge pull request #164 from stek29/nopanic
...
Dont panic in Bot.Send, just return error
2018-10-11 14:48:55 +03:00
Viktor Oreshkin
ec2090d300
Dont panic in Bot.Send, just return error
2018-10-11 14:40:16 +03:00
Viktor Oreshkin
629fe58962
Add File creation from io.Reader ( fix #137 )
...
Refactor sendFiles to accept Files
2018-10-11 14:39:07 +03:00
Ian Byrd
52a3603547
Merge pull request #138 from AntoniBertel/v3
...
Added language_code field in User structure
2018-09-18 01:12:22 +03:00
Ian Byrd
9d0170e505
Merge pull request #156 from stek29/optional_fields
...
Embed optional fields when sending (fix #147 )
2018-09-18 01:11:37 +03:00
Viktor Oreshkin
fd3c84fce1
Embed optional fields in SendAlbum
2018-09-15 15:15:08 +03:00
Viktor Oreshkin
6264ba688c
Embed optional fields when sending ( fix #147 )
2018-09-14 22:56:44 +03:00
Ian Byrd
b59ea4aec3
Merge pull request #146 from aprosvetova/patch-1
...
fixed wrong method name
2018-07-19 02:27:49 +03:00
Ian Byrd
1cd1ef9fc4
Merge pull request #151 from stek29/fix-gif
...
Handle Video with no sound (fix #133 )
2018-07-19 02:27:34 +03:00
Viktor Oreshkin
3b566f3fbd
Handle Video with no sound ( fix #133 )
2018-07-18 21:12:29 +03:00
Ian Byrd
89d8b20796
Merge pull request #141 from igorcoding/patch-1
...
Fix incorrect parsing of ChannelPrivate chat
2018-07-11 11:37:41 +03:00
Ian Byrd
e087d7f430
Merge pull request #148 from ulrichSchreiner/webhook_poller
...
Webhook poller implementation
2018-07-11 11:32:22 +03:00
Ulrich Schreiner
9b26b855ae
allow custom http muxes too
2018-07-01 19:05:38 +02:00
Ulrich Schreiner
97e78127ad
fix lint errors in current code
2018-06-30 22:34:04 +02:00
Ulrich Schreiner
07aeab1abb
add implementation for a webhook poller
2018-06-30 22:21:37 +02:00
Anna Prosvetova
fc1a751391
fixed wrong method name
2018-06-29 20:29:20 +03:00
Ian Byrd
743778f69e
Merge pull request #135 from devandsev/voice-handlers-fix
...
Fix voice handlers not firing
2018-06-03 13:11:04 +03:00
igorcoding
111bf7658b
Fix incorrect parse of channelprivate Chat type
2018-05-19 19:22:14 +03:00
Antoni Bertel
07734c936a
Applied change to valid structure
2018-05-03 15:46:43 +02:00
Antoni Bertel
a9ff639977
Added language_code field, see https://core.telegram.org/bots/apiajsdfkadjsfkadjsfkjadsl
2018-05-03 15:41:43 +02:00
Andrey Sevrikov
10a33dd585
Fix voice handlers not firing
2018-04-24 18:46:07 +03:00
Ian Byrd
ab26c41a13
Merge pull request #132 from sigurniv/custom-http-client
...
Custom HTTP clients.
2018-04-18 21:57:23 +03:00
sigurniv
78f08282d7
fixed indentation
2018-04-18 21:17:03 +03:00
sigurniv
5f938b2a7a
add option to pass custom http.Client to tb.NewBot() in case of proxying and other needs
2018-04-18 16:42:18 +03:00
Ian Byrd
2a7e9045d0
Merge pull request #128 from dschulz/patch-1
...
Set a unique string ID for each result in inline query Answer
2018-04-01 17:45:54 +03:00
Diego Schulz
46ab1ff3d9
Set a unique string ID for each result in inline query Answer
...
It's needed to set a unique string ID for each result in inline query Answer. Otherwise you get an
```
api error: Bad request: RESULT_ID_DUPLICATE
```
2018-03-20 10:32:31 -03:00
Ian Byrd
2414620038
Merge pull request #124 from vivekkartha/v2
...
Fixed a typo in readme
2018-02-12 01:26:37 +02:00
Vivek Kartha
19ca6b7f46
Fixed a typo in readme
2018-02-11 14:46:17 +05:30
Ian Byrd
2cebf54e14
Merge pull request #118 from damner/patch-1
...
Fix typo
2018-01-17 17:52:58 +02:00
Ian Byrd
2025c104e6
Merge pull request #119 from irgendwr/patch-4
...
simplified unnecessary if
2018-01-17 17:52:33 +02:00
den
b12b5e220c
Fix typo
2018-01-08 19:41:00 +03:00
Ian Byrd
fd49f3f260
Merge pull request #116 from wolther47/v2
...
Add ReplyKeyboardRemove
2017-12-31 00:19:43 +02:00
Ian Byrd
c2b7ed0ea1
Merge pull request #115 from JackSpera/v2
...
Fixed could not send message to private channel
2017-12-31 00:19:10 +02:00
Wolther47
84adedfefa
Add ReplyKeyboardRemove
2017-12-30 23:42:02 +08:00
Giovanni Spera
5513a66463
Fixed could not send message to private channel
2017-12-30 13:08:44 +01:00
Ian Byrd
389bcd3e65
Editting bot-issued messages doesn't return an error now.
2017-12-27 01:05:35 +02:00
Ian Byrd
3f24832170
Fix for a silly typo.
2017-12-27 00:46:50 +02:00
Ian Byrd
bda24d8650
Possibly breaking some builds, but inline message IDs won't work
...
otherwise.
2017-12-27 00:39:15 +02:00
Ian Byrd
f704eefacf
ChosenInlineResult.
2017-12-26 03:15:10 +02:00
Ian Byrd
7d18e51f6f
Merge pull request #112 from m1ome/fix-defer-for
...
Fixed defer in for loop.
2017-12-26 02:11:08 +02:00
Ian Byrd
8060e4caa3
Merge pull request #113 from irgendwr/fix-IsForwarded
...
IsForwarded() fixed.
2017-12-26 02:09:44 +02:00
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 )
2017-12-25 13:34:09 +01:00
Jonas Bögle
f2812ea814
simplified unnecessary if
...
You can remove this if and just directly return err since it's nil if there is no error
2017-12-25 13:07:57 +01:00
Pavel Makarenko
1175eafe1c
Fixed for in loop
2017-12-25 14:50:21 +03:00
Ian Byrd
25672b8f68
Proper fix.
2017-12-19 02:15:29 +02:00
Ian Byrd
a629ec5c64
Revert "Reporting errors correctly."
...
This reverts commit 7ecf4bd6d5
.
2017-12-19 02:13:08 +02:00
Ian Byrd
7ecf4bd6d5
Reporting errors correctly.
2017-12-19 01:07:50 +02:00
Ian Byrd
5d67349921
Filters.
2017-12-17 14:43:26 +02:00
Ian Byrd
1c2515c54f
Merge pull request #111 from irgendwr/patch-3
...
Corrected button-handler example mentioned in #66
2017-12-15 12:24:39 +02:00