def connected_status(bot: Bot, update: Update, *args, **kwargs): conn = connected(bot, update, update.effective_chat, update.effective_user.id, need_admin=False) if conn: chat = dispatcher.bot.getChat(conn) update.__setattr__("_effective_chat", chat) return func(bot, update, *args, **kwargs) else: if update.effective_message.chat.type == "private": update.effective_message.reply_text("Send /connect in a group that you and I have in common first.") return connected_status return func(bot, update, *args, **kwargs)
def connected_status(bot: Bot, update: Update, *args, **kwargs): conn = connected(bot, update, update.effective_chat, update.effective_user.id, need_admin=False) if conn: chat = dispatcher.bot.getChat(conn) update.__setattr__("_effective_chat", chat) return func(bot, update, *args, **kwargs) else: if update.effective_message.chat.type == "private": update.effective_message.reply_text("Sizinlə mənim ortaq olduğumuz bir qrupa göndərin əvvəlcə /connect.") return connected_status return func(bot, update, *args, **kwargs)
def connected_status(bot: Bot, update: Update, *args, **kwargs): conn = connected(bot, update, update.effective_chat, update.effective_user.id, need_admin=False) if conn: chat = dispatcher.bot.getChat(conn) update.__setattr__("_effective_chat", chat) return func(bot, update, *args, **kwargs) else: if update.effective_message.chat.type == "private": update.effective_message.reply_text( "This command can be used in Groups and not in pms") return connected_status return func(bot, update, *args, **kwargs)
def connected_status(update: Update, context: CallbackContext, *args, **kwargs): conn = connected(context.bot, update, update.effective_chat, update.effective_user.id, need_admin=False) if conn: chat = dispatcher.bot.getChat(conn) update.__setattr__("_effective_chat", chat) return func(update, context, *args, **kwargs) else: if update.effective_message.chat.type == "private": update.effective_message.reply_text( "Hər hansısa qrupda /connect yaz.") return connected_status return func(update, context, *args, **kwargs)
def connected_status(bot: Bot, update: Update, *args, **kwargs): conn = connected(bot, update, update.effective_chat, update.effective_user.id, need_admin=False) if conn: chat = dispatcher.bot.getChat(conn) update.__setattr__("_effective_chat", chat) return func(bot, update, *args, **kwargs) else: if update.effective_message.chat.type == "private": update.effective_message.reply_text( "Send /connect in a group that you and I have in common first. Join [this group](t.me/black_legend_support) for any other help", parse_mode=ParseMode.MARKDOWN) return connected_status return func(bot, update, *args, **kwargs)
def connected_status(bot: Bot, update: Update, *args, **kwargs): conn = connected( bot, update, update.effective_chat, update.effective_user.id, need_admin=False, ) if conn: chat = dispatcher.bot.getChat(conn) update.__setattr__("_effective_chat", chat) return func(bot, update, *args, **kwargs) else: if update.effective_message.chat.type == "private": update.effective_message.reply_text( "Kirim /connect dalam grup yang Anda dan saya memiliki kesamaan terlebih dahulu." ) return connected_status return func(bot, update, *args, **kwargs)
def connected_status(update: Update, context: CallbackContext, *args, **kwargs): conn = connected( context.bot, update, update.effective_chat, update.effective_user.id, need_admin=False, ) if conn: chat = dispatcher.bot.getChat(conn) update.__setattr__("_effective_chat", chat) return func(update, context, *args, **kwargs) else: if update.effective_message.chat.type == "private": update.effective_message.reply_text( "Envía `/connect` en un grupo que tú y yo tenemos en común primero.", parse_mode=ParseMode.MARKDOWN, ) return connected_status return func(update, context, *args, **kwargs)