Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The following wonderful people contributed directly or indirectly to this projec
- `Noam Meltzer <https://github.com/tsnoam>`_
- `Oleg Shlyazhko <https://github.com/ollmer>`_
- `overquota <https://github.com/overquota>`_
- `Patrick Hofmann <https://github.com/PH89>`_
- `Rahiel Kasim <https://github.com/rahiel>`_
- `Shelomentsev D <https://github.com/shelomentsevd>`_
- `sooyhwang <https://github.com/sooyhwang>`_
Expand Down
2 changes: 1 addition & 1 deletion telegram/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def sendGame(self,
:class:`telegram.TelegramError`

"""
url = '{0}/sendMessage'.format(self.base_url)
url = '{0}/sendGame'.format(self.base_url)

data = {'chat_id': chat_id, 'game_short_name': game_short_name}

Expand Down
4 changes: 2 additions & 2 deletions telegram/callbackquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
class CallbackQuery(TelegramObject):
"""This object represents a Telegram CallbackQuery."""

def __init__(self, id, from_user, data, chat_instance, bot=None, **kwargs):
def __init__(self, id, from_user, chat_instance, bot=None, **kwargs):
# Required
self.id = id
self.from_user = from_user
self.data = data
self.chat_instance = chat_instance
# Optionals
self.message = kwargs.get('message')
self.data = kwargs.get('data', '')
self.inline_message_id = kwargs.get('inline_message_id', '')
self.game_short_name = kwargs.get('game_short_name')

Expand Down
1 change: 1 addition & 0 deletions telegram/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def __init__(self, message_id, from_user, date, chat, bot=None, **kwargs):
self.text = kwargs.get('text', '')
self.entities = kwargs.get('entities', list())
self.audio = kwargs.get('audio')
self.game = kwargs.get('game')
self.document = kwargs.get('document')
self.photo = kwargs.get('photo')
self.sticker = kwargs.get('sticker')
Expand Down