mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-17 03:51:05 +03:00
Fix bot_token could not be specified alone on .start()
This commit is contained in:
parent
7c647b57e3
commit
2bfe86cda1
|
@ -267,7 +267,7 @@ class TelegramClient(TelegramBareClient):
|
|||
if not phone and not bot_token:
|
||||
raise ValueError('No phone number or bot token provided.')
|
||||
|
||||
if phone and bot_token:
|
||||
if phone and bot_token and not callable(phone):
|
||||
raise ValueError('Both a phone and a bot token provided, '
|
||||
'must only provide one of either')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user