From 61b36898a4e96dc429efe7c5d6210f416e9df7d6 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 10 Dec 2018 15:19:54 +0100 Subject: [PATCH] Fix chat username and session name --- examples/welcome_bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/welcome_bot.py b/examples/welcome_bot.py index 2598a802..4326ed6c 100644 --- a/examples/welcome_bot.py +++ b/examples/welcome_bot.py @@ -9,11 +9,11 @@ from pyrogram import Client, Emoji, Filters USER = "**{}**" MESSAGE = "{} Welcome to [Pyrogram](https://docs.pyrogram.ml/)'s group chat {{}}!".format(Emoji.SPARKLES) -app = Client("dan_prod") - -enabled_groups = Filters.chat("PyrogramLounge") +enabled_groups = Filters.chat("PyrogramChat") last_welcomes = {} +app = Client("my_account") + @app.on_message(enabled_groups & Filters.new_chat_members) def welcome(client, message):