Skip to content

Commit

Permalink
Properly reading the token
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisMayo committed Jan 31, 2021
1 parent 41804f5 commit 757c265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def getMessage(update: Update, context: CallbackContext) -> None:

def main():
with open('token.txt', 'r') as tokenFile:
token = tokenFile.read()
token = tokenFile.read().replace('\r', '').replace('\n', '')
"""Start the bot."""
# Create the Updater and pass it your bot's token.
# Make sure to set use_context=True to use the new context based callbacks
Expand All @@ -80,4 +80,4 @@ def main():


if __name__ == '__main__':
main()
main()

0 comments on commit 757c265

Please sign in to comment.