|
@@ -162,7 +162,7 @@ async def make_message_shot(bot, message):
|
|
|
full_name = await bot.get_entity(sender_id)
|
|
|
full_name = full_name.title
|
|
|
else:
|
|
|
- sender_id = message.sender
|
|
|
+ sender_id = message.sender.id
|
|
|
|
|
|
full_name = get_display_name(sender_id)
|
|
|
|
|
@@ -189,7 +189,7 @@ async def make_message_shot(bot, message):
|
|
|
data += pack('I', len(username))
|
|
|
data += username
|
|
|
|
|
|
- data += pack('I', (message.sender.id if message.sender else message.peer_id.channel_id) % 7)
|
|
|
+ data += pack('I', sender_id % 7)
|
|
|
|
|
|
text = bytes(unparse(message.raw_text, [entity for entity, _ in message.get_entities_text()]), encoding='UTF-8')
|
|
|
data += pack('I', len(text))
|