diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c2dd833 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.idea +env +venv +__pycache__/ \ No newline at end of file diff --git a/README.md b/README.md index 1a17cb2..6b3b3db 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,10 @@ https://telegram.me/dividendquerybot Read stock ticker symbol and queries for dividend data ### Dependencies -BeautifulSoup4 +* BeautifulSoup4 +* python-telegram-bot +* cachetools +* requests -python-telegram-bot - -cachetools \ No newline at end of file +### How to add your bot +https://telegra.ph/Awesome-Telegram-Bot-11-11 \ No newline at end of file diff --git a/configexample.ini b/config.ini similarity index 100% rename from configexample.ini rename to config.ini diff --git a/dividendbot.py b/dividendbot.py index 669ae2d..34b8af6 100755 --- a/dividendbot.py +++ b/dividendbot.py @@ -17,12 +17,12 @@ def main(): #read config file config = configparser.ConfigParser() config.read('config.ini') - tid = config['ID']['telegram'] + token_id = config['ID']['telegram'] """Run the bot.""" global update_id # Telegram Bot Authorization Token - bot = telegram.Bot(tid) + bot = telegram.Bot(token_id) # get the first pending update_id, this is so we can skip over it in case # we get an "Unauthorized" exception. diff --git a/requirement.txt b/requirement.txt index 0ba3d66..1312e01 100644 --- a/requirement.txt +++ b/requirement.txt @@ -1,3 +1,4 @@ -python-telegram-bot==10.1.0 -beautifulsoup4==4.6.0 -cachetools==3.1.1 +python-telegram-bot==13.9 +beautifulsoup4==4.10.0 +cachetools==4.2.2 +requests==2.26.0 \ No newline at end of file