mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
Merge branch 'stable'
This commit is contained in:
commit
93d65d87c6
@ -76,11 +76,11 @@ async def send_user_message(message: types.Message, super_chat_id: int, bot):
|
|||||||
new_message = await message.bot.send_message(super_chat_id, message.text + "\n\n" + user_info)
|
new_message = await message.bot.send_message(super_chat_id, message.text + "\n\n" + user_info)
|
||||||
else: # Не добавлять информацию в конец текста, информация отдельным сообщением
|
else: # Не добавлять информацию в конец текста, информация отдельным сообщением
|
||||||
new_message = await message.bot.send_message(super_chat_id, text=user_info)
|
new_message = await message.bot.send_message(super_chat_id, text=user_info)
|
||||||
await _redis.set(_message_unique_id(bot.pk, new_message.message_id), message.chat.id,
|
|
||||||
pexpire=ServerSettings.redis_timeout_ms())
|
|
||||||
new_message_2 = await message.copy_to(super_chat_id, reply_to_message_id=new_message.message_id)
|
new_message_2 = await message.copy_to(super_chat_id, reply_to_message_id=new_message.message_id)
|
||||||
await _redis.set(_message_unique_id(bot.pk, new_message_2.message_id), message.chat.id,
|
await _redis.set(_message_unique_id(bot.pk, new_message_2.message_id), message.chat.id,
|
||||||
pexpire=ServerSettings.redis_timeout_ms())
|
pexpire=ServerSettings.redis_timeout_ms())
|
||||||
|
await _redis.set(_message_unique_id(bot.pk, new_message.message_id), message.chat.id,
|
||||||
|
pexpire=ServerSettings.redis_timeout_ms())
|
||||||
return new_message
|
return new_message
|
||||||
else:
|
else:
|
||||||
new_message = await message.forward(super_chat_id)
|
new_message = await message.forward(super_chat_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user