@@ 503-512 (lines=10) @@ | ||
500 | if ($update_type === 'message') { |
|
501 | $message = $update->getMessage(); |
|
502 | ||
503 | if (self::insertMessageRequest($message)) { |
|
504 | $message_id = $message->getMessageId(); |
|
505 | $chat_id = $message->getChat()->getId(); |
|
506 | ||
507 | return self::insertTelegramUpdate( |
|
508 | $update_id, |
|
509 | $chat_id, |
|
510 | $message_id |
|
511 | ); |
|
512 | } |
|
513 | } elseif ($update_type === 'edited_message') { |
|
514 | $edited_message = $update->getEditedMessage(); |
|
515 | ||
@@ 533-542 (lines=10) @@ | ||
530 | } elseif ($update_type === 'channel_post') { |
|
531 | $channel_post = $update->getChannelPost(); |
|
532 | ||
533 | if (self::insertMessageRequest($channel_post)) { |
|
534 | $message_id = $channel_post->getMessageId(); |
|
535 | $chat_id = $channel_post->getChat()->getId(); |
|
536 | ||
537 | return self::insertTelegramUpdate( |
|
538 | $update_id, |
|
539 | $chat_id, |
|
540 | $message_id |
|
541 | ); |
|
542 | } |
|
543 | } elseif ($update_type === 'edited_channel_post') { |
|
544 | $edited_channel_post = $update->getEditedChannelPost(); |
|
545 |