@@ 499-508 (lines=10) @@ | ||
496 | if ($update_type === 'message') { |
|
497 | $message = $update->getMessage(); |
|
498 | ||
499 | if (self::insertMessageRequest($message)) { |
|
500 | $message_id = $message->getMessageId(); |
|
501 | $chat_id = $message->getChat()->getId(); |
|
502 | ||
503 | return self::insertTelegramUpdate( |
|
504 | $update_id, |
|
505 | $chat_id, |
|
506 | $message_id |
|
507 | ); |
|
508 | } |
|
509 | } elseif ($update_type === 'edited_message') { |
|
510 | $edited_message = $update->getEditedMessage(); |
|
511 | ||
@@ 529-538 (lines=10) @@ | ||
526 | } elseif ($update_type === 'channel_post') { |
|
527 | $channel_post = $update->getChannelPost(); |
|
528 | ||
529 | if (self::insertMessageRequest($channel_post)) { |
|
530 | $message_id = $channel_post->getMessageId(); |
|
531 | $chat_id = $channel_post->getChat()->getId(); |
|
532 | ||
533 | return self::insertTelegramUpdate( |
|
534 | $update_id, |
|
535 | $chat_id, |
|
536 | $message_id |
|
537 | ); |
|
538 | } |
|
539 | } elseif ($update_type === 'edited_channel_post') { |
|
540 | $edited_channel_post = $update->getEditedChannelPost(); |
|
541 |