File size: 408 Bytes
67e2e69
2096c89
 
 
1c1e321
 
2096c89
1c1e321
 
2096c89
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from pyrogram import Client
from telethon import TelegramClient
from telethon.sessions import StringSession

import os


TELEGRAM_SESSION = os.environ.get("TELEGRAM_SESSION")

bot: TelegramClient = TelegramClient(
    StringSession(TELEGRAM_SESSION),
    api_id=870972,
    api_hash="ce2efaca02dfcd110941be6025e9ac0d",
)


# bot: Client = Client("mboneabot", session_string=TELEGRAM_SESSION, workdir="/srv")