diff --git a/README.md b/README.md index 725b1e3..f95df49 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ This is a bot that logs public Group Chats to a Postgres Database. ``` - Create a Telegram group. - Add your bot to the group like so: https://stackoverflow.com/questions/37338101/how-to-add-a-bot-to-a-telegram-group - - Your bot only sees commands. Use `/setprivacy` with `@BotFather` in order to allow it to see all messages in a group. + - Use `/setprivacy` with `@BotFather` in order to allow it to see all messages in a group. ## Running the bot diff --git a/bot.py b/bot.py index 59a42a3..74fae5a 100644 --- a/bot.py +++ b/bot.py @@ -39,7 +39,7 @@ def logger(bot, update): else: print("Something went wrong adding the user {}".format(user.id)) - print("{} : {}".format(user.username,update.message.text)) + print("{} : {}".format(user.username.encode('utf-8'),update.message.text.encode('utf-8'))) # DB queries