mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 00:27:46 +01:00
CTT.DEFAULT_TYPE
parent
145b1e9aa0
commit
70c7395069
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue