This repository has been archived by the owner on Jun 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Live location: - Added `live_period` to method `sendLocation`, and namedtuple `InlineQueryResultLocation` and `InputLocationMessageContent` - Added method `editMessageLiveLocation` and `stopMessageLiveLocation` - Added method `setChatStickerSet` and `deleteChatStickerSet` - Added `sticker_set_name` and `can_set_sticker_set` to namedtuple `Chat` - Added `caption_entities` to namedtuple `Message` - Added method `editMessageLiveLocation` and `stopMessageLiveLocation` to class `Editor` - Added method `setChatStickerSet` and `deleteChatStickerSet` to class `Administrator` - Allowed supplying initial `offset` to `MessageLoop` - Allowed Bot API access through proxy
- Loading branch information
Showing
16 changed files
with
197 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,14 @@ def __init__(self, bot, on_update): | |
self._bot = bot | ||
self._update_handler = on_update | ||
|
||
async def run_forever(self, relax=0.1, timeout=20, allowed_updates=None, offset=None): | ||
async def run_forever(self, relax=0.1, offset=None, timeout=20, allowed_updates=None): | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nickoala
Author
Owner
|
||
""" | ||
Process new updates in infinity loop | ||
:param relax: int or float | ||
:param relax: float | ||
:param offset: int | ||
:param timeout: int | ||
:param allowed_updates: bool | ||
:param offset: int | ||
""" | ||
while 1: | ||
try: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,14 +44,14 @@ def __init__(self, bot, on_update): | |
self._bot = bot | ||
self._update_handler = on_update | ||
|
||
def run_forever(self, relax=0.1, timeout=20, allowed_updates=None, offset=None): | ||
def run_forever(self, relax=0.1, offset=None, timeout=20, allowed_updates=None): | ||
This comment has been minimized.
Sorry, something went wrong.
das7pad
Contributor
|
||
""" | ||
Process new updates in infinity loop | ||
:param relax: int or float | ||
:param relax: float | ||
:param offset: int | ||
:param timeout: int | ||
:param allowed_updates: bool | ||
:param offset: int | ||
""" | ||
while 1: | ||
try: | ||
|
@@ -130,6 +130,10 @@ def run_forever(self, *args, **kwargs): | |
:type relax: float | ||
:param relax: seconds between each :meth:`.getUpdates` | ||
:type offset: int | ||
:param offset: | ||
initial ``offset`` parameter supplied to :meth:`.getUpdates` | ||
:type timeout: int | ||
:param timeout: | ||
``timeout`` parameter supplied to :meth:`.getUpdates`, controlling | ||
|
Oops, something went wrong.
@nickoala Why did you changed the sequence here?