mass refactor
This commit is contained in:
@@ -218,9 +218,10 @@ export class EnhancedChatHandlers {
|
||||
const messageId = await this.chatService.sendMessage(
|
||||
matchId,
|
||||
telegramId,
|
||||
msg.text || '[Медиа]',
|
||||
msg.photo ? 'photo' : 'text',
|
||||
msg.photo ? msg.photo[msg.photo.length - 1].file_id : undefined
|
||||
msg.photo ?
|
||||
(msg.caption || '[Фото]') + ' [file_id: ' + msg.photo[msg.photo.length - 1].file_id + ']' :
|
||||
(msg.text || '[Медиа]'),
|
||||
msg.photo ? 'photo' : 'text'
|
||||
);
|
||||
|
||||
if (messageId) {
|
||||
|
||||
Reference in New Issue
Block a user