@bot.channel_post_handler(content_types=['text','photo','audio','video','document'])
def process_channel_message(message):
for chat_id in array_of_your_user_chat_ids:
bot.forward_message(chat_id, message.chat.id, message.id) for m in ctx.message.mentions:
print ("user mention %s" % m)
for m in ctx.message.role_mentions:
print ("role mention %s" % m)
if ctx.message.mention_everyone:
print ('everyone mention')if ctx.message.role_mentions or ctx.message.mention_everyone:
await ctx.send(author.mention+", не пингуй!")
else:
await ctx.send(msg) pip install -U discord.py