mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 19:20:09 +03:00
Add files via upload
This commit is contained in:
parent
8c7acc9f7f
commit
68d97fa717
|
@ -10,7 +10,7 @@ import sys
|
|||
loop = asyncio.get_event_loop()
|
||||
|
||||
"""
|
||||
Provider token can be obtained via @BotFather. more info at https://core.telegram.org/bots/payments
|
||||
Provider token can be obtained via @BotFather. more info at https://core.telegram.org/bots/payments#getting-a-token
|
||||
|
||||
If you are using test token, set test=True in generate_invoice function,
|
||||
If you are using real token, set test=False
|
||||
|
@ -20,7 +20,7 @@ provider_token = ''
|
|||
tracemalloc.start()
|
||||
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
||||
level=logging.WARNING)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def get_env(name, message, cast=str):
|
||||
if name in os.environ:
|
||||
|
@ -177,4 +177,7 @@ async def main():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if not provider_token:
|
||||
logger.log(logging.WARNING, "No provider token supplied.")
|
||||
exit(1)
|
||||
loop.run_until_complete(main())
|
||||
|
|
Loading…
Reference in New Issue
Block a user