forked from SpEcHiDe/UniBorg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
69 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
#!/usr/bin/env python3 | ||
# (c) https://t.me/TelethonChat/37677 | ||
# This Source Code Form is subject to the terms of the GNU | ||
# General Public License, v.3.0. If a copy of the GPL was not distributed with this | ||
# file, You can obtain one at https://www.gnu.org/licenses/gpl-3.0.en.html. | ||
|
||
from telethon.sync import TelegramClient | ||
from telethon.sessions import StringSession | ||
from config import Config | ||
|
||
with TelegramClient(StringSession(), Config.APP_ID, Config.API_HASH) as client: | ||
print("""Please go-to my.telegram.org | ||
Login using your Telegram account | ||
Click on API Development Tools | ||
Create a new application, by entering the required details""") | ||
APP_ID = int(input("Enter APP ID here: ")) | ||
API_HASH = input("Enter API HASH here: ") | ||
|
||
with TelegramClient(StringSession(), APP_ID, API_HASH) as client: | ||
print(client.session.save()) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
worker: python3 -m stdborg stdborg | ||
worker: python3 -m stdborg |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
telethon | ||
-r ./requirements-stdborg.txt |
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