From 70c73950698258cfdb453a2f621e3269f72663d4 Mon Sep 17 00:00:00 2001 From: Harshil <37377066+harshil21@users.noreply.github.com> Date: Sat, 11 Jun 2022 17:48:45 +0400 Subject: [PATCH] CTT.DEFAULT_TYPE --- Code-snippets.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Code-snippets.md b/Code-snippets.md index 33e5acf..8887c2c 100644 --- a/Code-snippets.md +++ b/Code-snippets.md @@ -502,7 +502,10 @@ slot_machine_value = { ```python import asyncio -async def add_group(update: Update, context: CallbackContext): +from telegram import Update +from telegram.ext import ContextTypes + +async def add_group(update: Update, context: ContextTypes.DEFAULT_TYPE): await asyncio.gather( update.message.reply_text(f"{member.full_name} just joined the group") for member in update.message.new_chat_members