2026-09-30 07:38:22 - Database initialized successfully
----------------------------------------
2026-09-30 07:38:22 - Forwarder initialized
----------------------------------------
2026-09-30 07:38:22 - Raw webhook input
{"update_id":70093731,
"channel_post":{"message_id":47,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1790753902,"text":"."}}
----------------------------------------
2026-09-30 07:38:22 - Parsed update
Array
(
    [update_id] => 70093731
    [channel_post] => Array
        (
            [message_id] => 47
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1790753902
            [text] => .
        )

)

----------------------------------------
2026-09-30 07:38:22 - Channel post received
Array
(
    [message_id] => 47
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1790753902
    [text] => .
)

----------------------------------------
2026-09-30 07:38:22 - Processing post
Array
(
    [message_id] => 47
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1790753902
    [text] => .
)

----------------------------------------
2026-09-30 07:38:22 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @eghamatiTools
)

----------------------------------------
2026-09-30 07:38:22 - Not from source channel, skipping
----------------------------------------
2026-09-30 07:40:23 - Database initialized successfully
----------------------------------------
2026-09-30 07:40:23 - Forwarder initialized
----------------------------------------
2026-09-30 07:40:23 - Raw webhook input
{"update_id":70093732,
"channel_post":{"message_id":48,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1790754023,"text":".."}}
----------------------------------------
2026-09-30 07:40:23 - Parsed update
Array
(
    [update_id] => 70093732
    [channel_post] => Array
        (
            [message_id] => 48
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1790754023
            [text] => ..
        )

)

----------------------------------------
2026-09-30 07:40:23 - Channel post received
Array
(
    [message_id] => 48
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1790754023
    [text] => ..
)

----------------------------------------
2026-09-30 07:40:23 - Processing post
Array
(
    [message_id] => 48
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1790754023
    [text] => ..
)

----------------------------------------
2026-09-30 07:40:23 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @eghamatiTools
)

----------------------------------------
2026-09-30 07:40:23 - Not from source channel, skipping
----------------------------------------
2026-09-30 07:42:30 - Database initialized successfully
----------------------------------------
2026-09-30 07:42:30 - Forwarder initialized
----------------------------------------
2026-09-30 07:42:30 - Raw webhook input
{"update_id":70093733,
"channel_post":{"message_id":49,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1790754150,"text":"."}}
----------------------------------------
2026-09-30 07:42:30 - Parsed update
Array
(
    [update_id] => 70093733
    [channel_post] => Array
        (
            [message_id] => 49
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1790754150
            [text] => .
        )

)

----------------------------------------
2026-09-30 07:42:30 - Channel post received
Array
(
    [message_id] => 49
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1790754150
    [text] => .
)

----------------------------------------
2026-09-30 07:42:30 - Processing post
Array
(
    [message_id] => 49
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1790754150
    [text] => .
)

----------------------------------------
2026-09-30 07:42:30 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @tgltorubika
)

----------------------------------------
2026-09-30 07:42:30 - Checking if forwarded
Array
(
    [message_id] => 49
    [is_forwarded] => 
)

----------------------------------------
2026-09-30 07:42:30 - Message is from source channel and not forwarded, proceeding to forward
----------------------------------------
2026-09-30 07:42:30 - Forwarding to Rubika
Array
(
    [message_id] => 49
)

----------------------------------------
2026-09-30 07:42:30 - Type: Text message
----------------------------------------
2026-09-30 07:42:30 - Sending text message to Rubika
Array
(
    [chat_id] => @getfromtelegram
    [text] => .
)

----------------------------------------
2026-09-30 07:42:30 - Calling Rubika API
Array
(
    [method] => sendMessage
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/sendMessage
    [data] => Array
        (
            [chat_id] => @getfromtelegram
            [text] => .
        )

)

----------------------------------------
2026-09-30 07:42:59 - CURL Error: Failed to connect to botapi.rubika.ir port 443: Connection timed out
----------------------------------------
2026-09-30 07:42:59 - Failed to forward text message
----------------------------------------
2026-09-30 11:59:48 - Database initialized successfully
----------------------------------------
2026-09-30 11:59:48 - Forwarder initialized
----------------------------------------
2026-09-30 11:59:48 - Raw webhook input
{"update_id":70093734,
"channel_post":{"message_id":50,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1790769588,"text":"."}}
----------------------------------------
2026-09-30 11:59:48 - Parsed update
Array
(
    [update_id] => 70093734
    [channel_post] => Array
        (
            [message_id] => 50
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1790769588
            [text] => .
        )

)

----------------------------------------
2026-09-30 11:59:48 - Channel post received
Array
(
    [message_id] => 50
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1790769588
    [text] => .
)

----------------------------------------
2026-09-30 11:59:48 - Processing post
Array
(
    [message_id] => 50
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1790769588
    [text] => .
)

----------------------------------------
2026-09-30 11:59:48 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @tgltorubika
)

----------------------------------------
2026-09-30 11:59:48 - Checking if forwarded
Array
(
    [message_id] => 50
    [is_forwarded] => 
)

----------------------------------------
2026-09-30 11:59:48 - Message is from source channel and not forwarded, proceeding to forward
----------------------------------------
2026-09-30 11:59:48 - Forwarding to Rubika
Array
(
    [message_id] => 50
)

----------------------------------------
2026-09-30 11:59:48 - Type: Text message
----------------------------------------
2026-09-30 11:59:48 - Sending text message to Rubika
Array
(
    [chat_id] => @getfromtelegram
    [text] => .
)

----------------------------------------
2026-09-30 11:59:48 - Calling Rubika API
Array
(
    [method] => sendMessage
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/sendMessage
    [data] => Array
        (
            [chat_id] => @getfromtelegram
            [text] => .
        )

)

----------------------------------------
2026-09-30 12:00:18 - CURL Error: Failed to connect to botapi.rubika.ir port 443: Connection timed out
----------------------------------------
2026-09-30 12:00:18 - Failed to forward text message
----------------------------------------
2026-10-01 03:50:01 - Database initialized successfully
----------------------------------------
2026-10-01 03:50:01 - Forwarder initialized
----------------------------------------
2026-10-01 03:50:01 - Raw webhook input
{"update_id":70093735,
"channel_post":{"message_id":51,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1790826600,"text":"."}}
----------------------------------------
2026-10-01 03:50:01 - Parsed update
Array
(
    [update_id] => 70093735
    [channel_post] => Array
        (
            [message_id] => 51
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1790826600
            [text] => .
        )

)

----------------------------------------
2026-10-01 03:50:01 - Channel post received
Array
(
    [message_id] => 51
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1790826600
    [text] => .
)

----------------------------------------
2026-10-01 03:50:01 - Processing post
Array
(
    [message_id] => 51
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1790826600
    [text] => .
)

----------------------------------------
2026-10-01 03:50:01 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @tgltorubika
)

----------------------------------------
2026-10-01 03:50:01 - Checking if forwarded
Array
(
    [message_id] => 51
    [is_forwarded] => 
)

----------------------------------------
2026-10-01 03:50:01 - Message is from source channel and not forwarded, proceeding to forward
----------------------------------------
2026-10-01 03:50:01 - Forwarding to Rubika
Array
(
    [message_id] => 51
)

----------------------------------------
2026-10-01 03:50:01 - Type: Text message
----------------------------------------
2026-10-01 03:50:01 - Sending text message to Rubika
Array
(
    [chat_id] => @getfromtelegram
    [text] => .
)

----------------------------------------
2026-10-01 03:50:01 - Calling Rubika API
Array
(
    [method] => sendMessage
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/sendMessage
    [data] => Array
        (
            [chat_id] => @getfromtelegram
            [text] => .
        )

)

----------------------------------------
2026-10-01 03:50:30 - CURL Error: Failed to connect to botapi.rubika.ir port 443: Connection timed out
----------------------------------------
2026-10-01 03:50:30 - Failed to forward text message
----------------------------------------
2026-10-03 01:24:58 - Database initialized successfully
----------------------------------------
2026-10-03 01:24:58 - Forwarder initialized
----------------------------------------
2026-10-03 01:24:58 - Raw webhook input
----------------------------------------
2026-10-03 01:24:58 - Invalid JSON received
----------------------------------------
2026-10-03 01:25:00 - Database initialized successfully
----------------------------------------
2026-10-03 01:25:00 - Forwarder initialized
----------------------------------------
2026-10-03 01:25:00 - Raw webhook input
----------------------------------------
2026-10-03 01:25:00 - Invalid JSON received
----------------------------------------
2026-10-05 07:54:32 - Database initialized successfully
----------------------------------------
2026-10-05 07:54:32 - Forwarder initialized
----------------------------------------
2026-10-05 07:54:32 - Raw webhook input
{"update_id":70093738,
"channel_post":{"message_id":54,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1791186871,"text":"..."}}
----------------------------------------
2026-10-05 07:54:32 - Parsed update
Array
(
    [update_id] => 70093738
    [channel_post] => Array
        (
            [message_id] => 54
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1791186871
            [text] => ...
        )

)

----------------------------------------
2026-10-05 07:54:32 - Channel post received
Array
(
    [message_id] => 54
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791186871
    [text] => ...
)

----------------------------------------
2026-10-05 07:54:32 - Processing post
Array
(
    [message_id] => 54
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791186871
    [text] => ...
)

----------------------------------------
2026-10-05 07:54:32 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @tgltorubika
)

----------------------------------------
2026-10-05 07:54:32 - Checking if forwarded
Array
(
    [message_id] => 54
    [is_forwarded] => 
)

----------------------------------------
2026-10-05 07:54:32 - Message is from source channel and not forwarded, proceeding to forward
----------------------------------------
2026-10-05 07:54:32 - Forwarding to Rubika
Array
(
    [message_id] => 54
)

----------------------------------------
2026-10-05 07:54:32 - Type: Text message
----------------------------------------
2026-10-05 07:54:32 - Sending text message to Rubika
Array
(
    [chat_id] => @getfromtelegram
    [text] => ...
)

----------------------------------------
2026-10-05 07:54:32 - Calling Rubika API
Array
(
    [method] => sendMessage
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/sendMessage
    [data] => Array
        (
            [chat_id] => @getfromtelegram
            [text] => ...
        )

)

----------------------------------------
2026-10-05 07:54:38 - Rubika API response
Array
(
    [http_code] => 200
    [response] => {"status":"OK","data":{"message_id":"1929732472581003046"}}
)

----------------------------------------
2026-10-05 07:54:38 - Saving forwarded message to database
Array
(
    [telegram_message_id] => 54
    [rubika_message_id] => 1929732472581003046
    [media_type] => text
)

----------------------------------------
2026-10-05 07:54:38 - Message saved successfully
----------------------------------------
2026-10-05 07:54:38 - Text message forwarded successfully
Array
(
    [status] => OK
    [data] => Array
        (
            [message_id] => 1929732472581003046
        )

)

----------------------------------------
2026-10-05 07:59:29 - Database initialized successfully
----------------------------------------
2026-10-05 07:59:29 - Forwarder initialized
----------------------------------------
2026-10-05 07:59:29 - Raw webhook input
{"update_id":70093739,
"channel_post":{"message_id":55,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1791187169,"photo":[{"file_id":"AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAANzAAM9BA","file_unique_id":"AQADTA9rG45lGFJ4","file_size":1378,"width":90,"height":51},{"file_id":"AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAANtAAM9BA","file_unique_id":"AQADTA9rG45lGFJy","file_size":14727,"width":320,"height":180},{"file_id":"AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAAN4AAM9BA","file_unique_id":"AQADTA9rG45lGFJ9","file_size":36046,"width":738,"height":415}]}}
----------------------------------------
2026-10-05 07:59:29 - Parsed update
Array
(
    [update_id] => 70093739
    [channel_post] => Array
        (
            [message_id] => 55
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1791187169
            [photo] => Array
                (
                    [0] => Array
                        (
                            [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAANzAAM9BA
                            [file_unique_id] => AQADTA9rG45lGFJ4
                            [file_size] => 1378
                            [width] => 90
                            [height] => 51
                        )

                    [1] => Array
                        (
                            [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAANtAAM9BA
                            [file_unique_id] => AQADTA9rG45lGFJy
                            [file_size] => 14727
                            [width] => 320
                            [height] => 180
                        )

                    [2] => Array
                        (
                            [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAAN4AAM9BA
                            [file_unique_id] => AQADTA9rG45lGFJ9
                            [file_size] => 36046
                            [width] => 738
                            [height] => 415
                        )

                )

        )

)

----------------------------------------
2026-10-05 07:59:29 - Channel post received
Array
(
    [message_id] => 55
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791187169
    [photo] => Array
        (
            [0] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAANzAAM9BA
                    [file_unique_id] => AQADTA9rG45lGFJ4
                    [file_size] => 1378
                    [width] => 90
                    [height] => 51
                )

            [1] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAANtAAM9BA
                    [file_unique_id] => AQADTA9rG45lGFJy
                    [file_size] => 14727
                    [width] => 320
                    [height] => 180
                )

            [2] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAAN4AAM9BA
                    [file_unique_id] => AQADTA9rG45lGFJ9
                    [file_size] => 36046
                    [width] => 738
                    [height] => 415
                )

        )

)

----------------------------------------
2026-10-05 07:59:29 - Processing post
Array
(
    [message_id] => 55
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791187169
    [photo] => Array
        (
            [0] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAANzAAM9BA
                    [file_unique_id] => AQADTA9rG45lGFJ4
                    [file_size] => 1378
                    [width] => 90
                    [height] => 51
                )

            [1] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAANtAAM9BA
                    [file_unique_id] => AQADTA9rG45lGFJy
                    [file_size] => 14727
                    [width] => 320
                    [height] => 180
                )

            [2] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAAN4AAM9BA
                    [file_unique_id] => AQADTA9rG45lGFJ9
                    [file_size] => 36046
                    [width] => 738
                    [height] => 415
                )

        )

)

----------------------------------------
2026-10-05 07:59:29 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @tgltorubika
)

----------------------------------------
2026-10-05 07:59:29 - Checking if forwarded
Array
(
    [message_id] => 55
    [is_forwarded] => 
)

----------------------------------------
2026-10-05 07:59:29 - Message is from source channel and not forwarded, proceeding to forward
----------------------------------------
2026-10-05 07:59:29 - Forwarding to Rubika
Array
(
    [message_id] => 55
)

----------------------------------------
2026-10-05 07:59:29 - Type: Photo message
Array
(
    [photo_count] => 3
)

----------------------------------------
2026-10-05 07:59:29 - Processing photo
Array
(
    [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAAN4AAM9BA
)

----------------------------------------
2026-10-05 07:59:29 - File not found in cache, downloading from Telegram
----------------------------------------
2026-10-05 07:59:29 - Downloading file from Telegram
Array
(
    [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAAN4AAM9BA
)

----------------------------------------
2026-10-05 07:59:29 - getFile response
Array
(
    [ok] => 1
    [result] => Array
        (
            [file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAAN4AAM9BA
            [file_unique_id] => AQADTA9rG45lGFJ9
            [file_size] => 36046
            [file_path] => photos/file_1465.jpg
        )

)

----------------------------------------
2026-10-05 07:59:29 - Downloading from URL: https://api.telegram.org/file/bot8254045639:AAGcSuVM6yuHMZwkOxUM-79iu_Zd3YZI1eg/photos/file_1465.jpg
----------------------------------------
2026-10-05 07:59:30 - File saved to: /tmp/telegram_QdInKq (36046 bytes)
----------------------------------------
2026-10-05 07:59:30 - File downloaded to: /tmp/telegram_QdInKq
----------------------------------------
2026-10-05 07:59:30 - Uploading file to Rubika
Array
(
    [path] => /tmp/telegram_QdInKq
    [type] => Image
)

----------------------------------------
2026-10-05 07:59:30 - Calling Rubika API
Array
(
    [method] => requestSendFile
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/requestSendFile
    [data] => Array
        (
            [type] => Image
        )

)

----------------------------------------
2026-10-05 07:59:30 - Rubika API response
Array
(
    [http_code] => 200
    [response] => {"status":"OK","data":{"upload_url":"https://messengerg2f1.rubika.ir/upload/UMv0agzzeqsejcutlblrhvbvwtkyiljtsoax"}}
)

----------------------------------------
2026-10-05 07:59:30 - Got upload URL: https://messengerg2f1.rubika.ir/upload/UMv0agzzeqsejcutlblrhvbvwtkyiljtsoax
----------------------------------------
2026-10-05 07:59:30 - Upload response
Array
(
    [http_code] => 200
    [response] => {"status":"OK","status_det":"OK","data":{"file_id":"efrBGJXO04853849002725899165395039487482026100511"}}
)

----------------------------------------
2026-10-05 07:59:30 - File uploaded to Rubika
Array
(
    [rubika_file_id] => efrBGJXO04853849002725899165395039487482026100511
)

----------------------------------------
2026-10-05 07:59:30 - Saving media mapping
Array
(
    [telegram_file_id] => AgACAgQAAyEFAATdPvgWAAM3asNY4Wkhv98IXr8rc-YBsu5se4cAAkwPaxuOZRhS01_kHK2p-A4BAAMCAAN4AAM9BA
    [rubika_file_id] => efrBGJXO04853849002725899165395039487482026100511
    [file_type] => photo
)

----------------------------------------
2026-10-05 07:59:30 - Media mapping saved
----------------------------------------
2026-10-05 07:59:30 - Sending file to Rubika
Array
(
    [chat_id] => @getfromtelegram
    [file_id] => efrBGJXO04853849002725899165395039487482026100511
    [text] => 
)

----------------------------------------
2026-10-05 07:59:30 - Calling Rubika API
Array
(
    [method] => sendFile
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/sendFile
    [data] => Array
        (
            [chat_id] => @getfromtelegram
            [file_id] => efrBGJXO04853849002725899165395039487482026100511
            [text] => 
        )

)

----------------------------------------
2026-10-05 07:59:31 - Rubika API response
Array
(
    [http_code] => 200
    [response] => {"status":"INVALID_ACCESS"}
)

----------------------------------------
2026-10-05 07:59:31 - Failed to send file to Rubika
Array
(
    [status] => INVALID_ACCESS
)

----------------------------------------
2026-10-05 07:59:38 - Database initialized successfully
----------------------------------------
2026-10-05 07:59:38 - Forwarder initialized
----------------------------------------
2026-10-05 07:59:38 - Raw webhook input
{"update_id":70093740,
"channel_post":{"message_id":56,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1791187178,"text":"..."}}
----------------------------------------
2026-10-05 07:59:38 - Parsed update
Array
(
    [update_id] => 70093740
    [channel_post] => Array
        (
            [message_id] => 56
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1791187178
            [text] => ...
        )

)

----------------------------------------
2026-10-05 07:59:38 - Channel post received
Array
(
    [message_id] => 56
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791187178
    [text] => ...
)

----------------------------------------
2026-10-05 07:59:38 - Processing post
Array
(
    [message_id] => 56
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791187178
    [text] => ...
)

----------------------------------------
2026-10-05 07:59:38 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @tgltorubika
)

----------------------------------------
2026-10-05 07:59:38 - Checking if forwarded
Array
(
    [message_id] => 56
    [is_forwarded] => 
)

----------------------------------------
2026-10-05 07:59:38 - Message is from source channel and not forwarded, proceeding to forward
----------------------------------------
2026-10-05 07:59:38 - Forwarding to Rubika
Array
(
    [message_id] => 56
)

----------------------------------------
2026-10-05 07:59:38 - Type: Text message
----------------------------------------
2026-10-05 07:59:38 - Sending text message to Rubika
Array
(
    [chat_id] => @getfromtelegram
    [text] => ...
)

----------------------------------------
2026-10-05 07:59:38 - Calling Rubika API
Array
(
    [method] => sendMessage
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/sendMessage
    [data] => Array
        (
            [chat_id] => @getfromtelegram
            [text] => ...
        )

)

----------------------------------------
2026-10-05 07:59:40 - Rubika API response
Array
(
    [http_code] => 200
    [response] => {"status":"OK","data":{"message_id":"1929732474282003046"}}
)

----------------------------------------
2026-10-05 07:59:40 - Saving forwarded message to database
Array
(
    [telegram_message_id] => 56
    [rubika_message_id] => 1929732474282003046
    [media_type] => text
)

----------------------------------------
2026-10-05 07:59:40 - Message saved successfully
----------------------------------------
2026-10-05 07:59:40 - Text message forwarded successfully
Array
(
    [status] => OK
    [data] => Array
        (
            [message_id] => 1929732474282003046
        )

)

----------------------------------------
2026-10-05 08:00:56 - Database initialized successfully
----------------------------------------
2026-10-05 08:00:56 - Forwarder initialized
----------------------------------------
2026-10-05 08:00:56 - Raw webhook input
{"update_id":70093741,
"channel_post":{"message_id":57,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1791187256,"text":"ttt"}}
----------------------------------------
2026-10-05 08:00:56 - Parsed update
Array
(
    [update_id] => 70093741
    [channel_post] => Array
        (
            [message_id] => 57
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1791187256
            [text] => ttt
        )

)

----------------------------------------
2026-10-05 08:00:56 - Channel post received
Array
(
    [message_id] => 57
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791187256
    [text] => ttt
)

----------------------------------------
2026-10-05 08:00:56 - Processing post
Array
(
    [message_id] => 57
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791187256
    [text] => ttt
)

----------------------------------------
2026-10-05 08:00:56 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @tgltorubika
)

----------------------------------------
2026-10-05 08:00:56 - Checking if forwarded
Array
(
    [message_id] => 57
    [is_forwarded] => 
)

----------------------------------------
2026-10-05 08:00:56 - Message is from source channel and not forwarded, proceeding to forward
----------------------------------------
2026-10-05 08:00:56 - Forwarding to Rubika
Array
(
    [message_id] => 57
)

----------------------------------------
2026-10-05 08:00:56 - Type: Text message
----------------------------------------
2026-10-05 08:00:56 - Sending text message to Rubika
Array
(
    [chat_id] => @getfromtelegram
    [text] => ttt
)

----------------------------------------
2026-10-05 08:00:56 - Calling Rubika API
Array
(
    [method] => sendMessage
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/sendMessage
    [data] => Array
        (
            [chat_id] => @getfromtelegram
            [text] => ttt
        )

)

----------------------------------------
2026-10-05 08:00:58 - Rubika API response
Array
(
    [http_code] => 200
    [response] => {"status":"OK","data":{"message_id":"1929732474721003046"}}
)

----------------------------------------
2026-10-05 08:00:58 - Saving forwarded message to database
Array
(
    [telegram_message_id] => 57
    [rubika_message_id] => 1929732474721003046
    [media_type] => text
)

----------------------------------------
2026-10-05 08:00:58 - Message saved successfully
----------------------------------------
2026-10-05 08:00:58 - Text message forwarded successfully
Array
(
    [status] => OK
    [data] => Array
        (
            [message_id] => 1929732474721003046
        )

)

----------------------------------------
2026-10-05 08:02:56 - Database initialized successfully
----------------------------------------
2026-10-05 08:02:56 - Forwarder initialized
----------------------------------------
2026-10-05 08:02:56 - Raw webhook input
{"update_id":70093742,
"channel_post":{"message_id":58,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1791187376,"photo":[{"file_id":"AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAANzAAM9BA","file_unique_id":"AQADTQ9rG45lGFJ4","file_size":890,"width":90,"height":36},{"file_id":"AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAANtAAM9BA","file_unique_id":"AQADTQ9rG45lGFJy","file_size":7777,"width":320,"height":129},{"file_id":"AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN5AAM9BA","file_unique_id":"AQADTQ9rG45lGFJ-","file_size":29124,"width":1024,"height":414},{"file_id":"AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN4AAM9BA","file_unique_id":"AQADTQ9rG45lGFJ9","file_size":32613,"width":800,"height":323}],"caption":"jiljljlk"}}
----------------------------------------
2026-10-05 08:02:56 - Parsed update
Array
(
    [update_id] => 70093742
    [channel_post] => Array
        (
            [message_id] => 58
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1791187376
            [photo] => Array
                (
                    [0] => Array
                        (
                            [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAANzAAM9BA
                            [file_unique_id] => AQADTQ9rG45lGFJ4
                            [file_size] => 890
                            [width] => 90
                            [height] => 36
                        )

                    [1] => Array
                        (
                            [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAANtAAM9BA
                            [file_unique_id] => AQADTQ9rG45lGFJy
                            [file_size] => 7777
                            [width] => 320
                            [height] => 129
                        )

                    [2] => Array
                        (
                            [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN5AAM9BA
                            [file_unique_id] => AQADTQ9rG45lGFJ-
                            [file_size] => 29124
                            [width] => 1024
                            [height] => 414
                        )

                    [3] => Array
                        (
                            [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN4AAM9BA
                            [file_unique_id] => AQADTQ9rG45lGFJ9
                            [file_size] => 32613
                            [width] => 800
                            [height] => 323
                        )

                )

            [caption] => jiljljlk
        )

)

----------------------------------------
2026-10-05 08:02:56 - Channel post received
Array
(
    [message_id] => 58
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791187376
    [photo] => Array
        (
            [0] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAANzAAM9BA
                    [file_unique_id] => AQADTQ9rG45lGFJ4
                    [file_size] => 890
                    [width] => 90
                    [height] => 36
                )

            [1] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAANtAAM9BA
                    [file_unique_id] => AQADTQ9rG45lGFJy
                    [file_size] => 7777
                    [width] => 320
                    [height] => 129
                )

            [2] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN5AAM9BA
                    [file_unique_id] => AQADTQ9rG45lGFJ-
                    [file_size] => 29124
                    [width] => 1024
                    [height] => 414
                )

            [3] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN4AAM9BA
                    [file_unique_id] => AQADTQ9rG45lGFJ9
                    [file_size] => 32613
                    [width] => 800
                    [height] => 323
                )

        )

    [caption] => jiljljlk
)

----------------------------------------
2026-10-05 08:02:56 - Processing post
Array
(
    [message_id] => 58
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791187376
    [photo] => Array
        (
            [0] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAANzAAM9BA
                    [file_unique_id] => AQADTQ9rG45lGFJ4
                    [file_size] => 890
                    [width] => 90
                    [height] => 36
                )

            [1] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAANtAAM9BA
                    [file_unique_id] => AQADTQ9rG45lGFJy
                    [file_size] => 7777
                    [width] => 320
                    [height] => 129
                )

            [2] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN5AAM9BA
                    [file_unique_id] => AQADTQ9rG45lGFJ-
                    [file_size] => 29124
                    [width] => 1024
                    [height] => 414
                )

            [3] => Array
                (
                    [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN4AAM9BA
                    [file_unique_id] => AQADTQ9rG45lGFJ9
                    [file_size] => 32613
                    [width] => 800
                    [height] => 323
                )

        )

    [caption] => jiljljlk
)

----------------------------------------
2026-10-05 08:02:56 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @tgltorubika
)

----------------------------------------
2026-10-05 08:02:56 - Checking if forwarded
Array
(
    [message_id] => 58
    [is_forwarded] => 
)

----------------------------------------
2026-10-05 08:02:56 - Message is from source channel and not forwarded, proceeding to forward
----------------------------------------
2026-10-05 08:02:56 - Forwarding to Rubika
Array
(
    [message_id] => 58
)

----------------------------------------
2026-10-05 08:02:56 - Type: Photo message
Array
(
    [photo_count] => 4
)

----------------------------------------
2026-10-05 08:02:56 - Processing photo
Array
(
    [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN4AAM9BA
)

----------------------------------------
2026-10-05 08:02:56 - File not found in cache, downloading from Telegram
----------------------------------------
2026-10-05 08:02:56 - Downloading file from Telegram
Array
(
    [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN4AAM9BA
)

----------------------------------------
2026-10-05 08:02:56 - getFile response
Array
(
    [ok] => 1
    [result] => Array
        (
            [file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN4AAM9BA
            [file_unique_id] => AQADTQ9rG45lGFJ9
            [file_size] => 32613
            [file_path] => photos/file_1466.jpg
        )

)

----------------------------------------
2026-10-05 08:02:56 - Downloading from URL: https://api.telegram.org/file/bot8254045639:AAGcSuVM6yuHMZwkOxUM-79iu_Zd3YZI1eg/photos/file_1466.jpg
----------------------------------------
2026-10-05 08:02:56 - File saved to: /tmp/telegram_zjS2wO (32613 bytes)
----------------------------------------
2026-10-05 08:02:56 - File downloaded to: /tmp/telegram_zjS2wO
----------------------------------------
2026-10-05 08:02:56 - Uploading file to Rubika
Array
(
    [path] => /tmp/telegram_zjS2wO
    [type] => Image
)

----------------------------------------
2026-10-05 08:02:56 - Calling Rubika API
Array
(
    [method] => requestSendFile
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/requestSendFile
    [data] => Array
        (
            [type] => Image
        )

)

----------------------------------------
2026-10-05 08:02:57 - Rubika API response
Array
(
    [http_code] => 200
    [response] => {"status":"OK","data":{"upload_url":"https://messengerg2f1.rubika.ir/upload/UMv0rqmdqwmqbrzvizulhikjgwaxhzmhlyqt"}}
)

----------------------------------------
2026-10-05 08:02:57 - Got upload URL: https://messengerg2f1.rubika.ir/upload/UMv0rqmdqwmqbrzvizulhikjgwaxhzmhlyqt
----------------------------------------
2026-10-05 08:03:01 - Upload response
Array
(
    [http_code] => 200
    [response] => {"status":"OK","status_det":"OK","data":{"file_id":"efrB6WUZ05335041955969240934301029925352026100511"}}
)

----------------------------------------
2026-10-05 08:03:01 - File uploaded to Rubika
Array
(
    [rubika_file_id] => efrB6WUZ05335041955969240934301029925352026100511
)

----------------------------------------
2026-10-05 08:03:01 - Saving media mapping
Array
(
    [telegram_file_id] => AgACAgQAAyEFAATdPvgWAAM6asNZsIc1Nw2LAgOhhkwG0Tg1VwQAAk0PaxuOZRhShVXXoE8KKZUBAAMCAAN4AAM9BA
    [rubika_file_id] => efrB6WUZ05335041955969240934301029925352026100511
    [file_type] => photo
)

----------------------------------------
2026-10-05 08:03:01 - Media mapping saved
----------------------------------------
2026-10-05 08:03:01 - Sending file to Rubika
Array
(
    [chat_id] => @getfromtelegram
    [file_id] => efrB6WUZ05335041955969240934301029925352026100511
    [text] => jiljljlk
)

----------------------------------------
2026-10-05 08:03:01 - Calling Rubika API
Array
(
    [method] => sendFile
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/sendFile
    [data] => Array
        (
            [chat_id] => @getfromtelegram
            [file_id] => efrB6WUZ05335041955969240934301029925352026100511
            [text] => jiljljlk
        )

)

----------------------------------------
2026-10-05 08:03:01 - Rubika API response
Array
(
    [http_code] => 200
    [response] => {"status":"INVALID_ACCESS"}
)

----------------------------------------
2026-10-05 08:03:01 - Failed to send file to Rubika
Array
(
    [status] => INVALID_ACCESS
)

----------------------------------------
2026-10-05 08:22:26 - Database initialized successfully
----------------------------------------
2026-10-05 08:22:26 - Forwarder initialized
----------------------------------------
2026-10-05 08:22:26 - Raw webhook input
{"update_id":70093743,
"channel_post":{"message_id":59,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1791188546,"text":"gg"}}
----------------------------------------
2026-10-05 08:22:26 - Parsed update
Array
(
    [update_id] => 70093743
    [channel_post] => Array
        (
            [message_id] => 59
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1791188546
            [text] => gg
        )

)

----------------------------------------
2026-10-05 08:22:26 - Channel post received
Array
(
    [message_id] => 59
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791188546
    [text] => gg
)

----------------------------------------
2026-10-05 08:22:26 - Processing post
Array
(
    [message_id] => 59
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791188546
    [text] => gg
)

----------------------------------------
2026-10-05 08:22:26 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @tgltorubika
)

----------------------------------------
2026-10-05 08:22:26 - Checking if forwarded
Array
(
    [message_id] => 59
    [is_forwarded] => 
)

----------------------------------------
2026-10-05 08:22:26 - Message is from source channel and not forwarded, proceeding to forward
----------------------------------------
2026-10-05 08:22:26 - Forwarding to Rubika
Array
(
    [message_id] => 59
)

----------------------------------------
2026-10-05 08:22:26 - Type: Text message
----------------------------------------
2026-10-05 08:22:26 - Sending text message to Rubika
Array
(
    [chat_id] => @getfromtelegram
    [text] => gg
)

----------------------------------------
2026-10-05 08:22:26 - Calling Rubika API
Array
(
    [method] => sendMessage
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/sendMessage
    [data] => Array
        (
            [chat_id] => @getfromtelegram
            [text] => gg
        )

)

----------------------------------------
2026-10-05 08:22:27 - Rubika API response
Array
(
    [http_code] => 200
    [response] => {"status":"OK","data":{"message_id":"1929746482202003046"}}
)

----------------------------------------
2026-10-05 08:22:27 - Saving forwarded message to database
Array
(
    [telegram_message_id] => 59
    [rubika_message_id] => 1929746482202003046
    [media_type] => text
)

----------------------------------------
2026-10-05 08:22:27 - Message saved successfully
----------------------------------------
2026-10-05 08:22:27 - Text message forwarded successfully
Array
(
    [status] => OK
    [data] => Array
        (
            [message_id] => 1929746482202003046
        )

)

----------------------------------------
2026-10-05 08:22:45 - Database initialized successfully
----------------------------------------
2026-10-05 08:22:45 - Forwarder initialized
----------------------------------------
2026-10-05 08:22:45 - Raw webhook input
{"update_id":70093744,
"channel_post":{"message_id":60,"sender_chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"chat":{"id":-1003711891478,"title":"telegram to rubika","username":"tgltorubika","type":"channel"},"date":1791188565,"document":{"file_name":"\u0628\u0627\u0632\u06af\u0634\u062a_\u0627\u062d\u062a\u0645\u0627\u0644\u06cc_\u06a9\u0627\u067e\u06cc\u062a\u0627\u0646_\u0628\u0627\u0631\u0628\u0648\u0633\u0627_\u062f\u0631_\u0642\u0633\u0645\u062a_\u0628\u0639\u062f\u06cc_\u062f\u0632\u062f\u0627\u0646_\u062f\u0631\u06cc\u0627\u06cc\u06cc_\u06a9\u0627\u0631\u0627\u0626\u06cc\u0628.jpg","mime_type":"image/jpeg","thumbnail":{"file_id":"AAMCBAADIQUABN0--BYAAzxqw15VLxLIxYp-WNnB3TgF748Z1gACtB8AAo5lGFJikrhMNwHv6AEAB20AAz0E","file_unique_id":"AQADtB8AAo5lGFJy","file_size":7016,"width":320,"height":129},"thumb":{"file_id":"AAMCBAADIQUABN0--BYAAzxqw15VLxLIxYp-WNnB3TgF748Z1gACtB8AAo5lGFJikrhMNwHv6AEAB20AAz0E","file_unique_id":"AQADtB8AAo5lGFJy","file_size":7016,"width":320,"height":129},"file_id":"BQACAgQAAyEFAATdPvgWAAM8asNeVS8SyMWKfljZwd04Be-PGdYAArQfAAKOZRhSYpK4TDcB7-g9BA","file_unique_id":"AgADtB8AAo5lGFI","file_size":29124}}}
----------------------------------------
2026-10-05 08:22:45 - Parsed update
Array
(
    [update_id] => 70093744
    [channel_post] => Array
        (
            [message_id] => 60
            [sender_chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [chat] => Array
                (
                    [id] => -1003711891478
                    [title] => telegram to rubika
                    [username] => tgltorubika
                    [type] => channel
                )

            [date] => 1791188565
            [document] => Array
                (
                    [file_name] => بازگشت_احتمالی_کاپیتان_باربوسا_در_قسمت_بعدی_دزدان_دریایی_کارائیب.jpg
                    [mime_type] => image/jpeg
                    [thumbnail] => Array
                        (
                            [file_id] => AAMCBAADIQUABN0--BYAAzxqw15VLxLIxYp-WNnB3TgF748Z1gACtB8AAo5lGFJikrhMNwHv6AEAB20AAz0E
                            [file_unique_id] => AQADtB8AAo5lGFJy
                            [file_size] => 7016
                            [width] => 320
                            [height] => 129
                        )

                    [thumb] => Array
                        (
                            [file_id] => AAMCBAADIQUABN0--BYAAzxqw15VLxLIxYp-WNnB3TgF748Z1gACtB8AAo5lGFJikrhMNwHv6AEAB20AAz0E
                            [file_unique_id] => AQADtB8AAo5lGFJy
                            [file_size] => 7016
                            [width] => 320
                            [height] => 129
                        )

                    [file_id] => BQACAgQAAyEFAATdPvgWAAM8asNeVS8SyMWKfljZwd04Be-PGdYAArQfAAKOZRhSYpK4TDcB7-g9BA
                    [file_unique_id] => AgADtB8AAo5lGFI
                    [file_size] => 29124
                )

        )

)

----------------------------------------
2026-10-05 08:22:45 - Channel post received
Array
(
    [message_id] => 60
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791188565
    [document] => Array
        (
            [file_name] => بازگشت_احتمالی_کاپیتان_باربوسا_در_قسمت_بعدی_دزدان_دریایی_کارائیب.jpg
            [mime_type] => image/jpeg
            [thumbnail] => Array
                (
                    [file_id] => AAMCBAADIQUABN0--BYAAzxqw15VLxLIxYp-WNnB3TgF748Z1gACtB8AAo5lGFJikrhMNwHv6AEAB20AAz0E
                    [file_unique_id] => AQADtB8AAo5lGFJy
                    [file_size] => 7016
                    [width] => 320
                    [height] => 129
                )

            [thumb] => Array
                (
                    [file_id] => AAMCBAADIQUABN0--BYAAzxqw15VLxLIxYp-WNnB3TgF748Z1gACtB8AAo5lGFJikrhMNwHv6AEAB20AAz0E
                    [file_unique_id] => AQADtB8AAo5lGFJy
                    [file_size] => 7016
                    [width] => 320
                    [height] => 129
                )

            [file_id] => BQACAgQAAyEFAATdPvgWAAM8asNeVS8SyMWKfljZwd04Be-PGdYAArQfAAKOZRhSYpK4TDcB7-g9BA
            [file_unique_id] => AgADtB8AAo5lGFI
            [file_size] => 29124
        )

)

----------------------------------------
2026-10-05 08:22:45 - Processing post
Array
(
    [message_id] => 60
    [sender_chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [chat] => Array
        (
            [id] => -1003711891478
            [title] => telegram to rubika
            [username] => tgltorubika
            [type] => channel
        )

    [date] => 1791188565
    [document] => Array
        (
            [file_name] => بازگشت_احتمالی_کاپیتان_باربوسا_در_قسمت_بعدی_دزدان_دریایی_کارائیب.jpg
            [mime_type] => image/jpeg
            [thumbnail] => Array
                (
                    [file_id] => AAMCBAADIQUABN0--BYAAzxqw15VLxLIxYp-WNnB3TgF748Z1gACtB8AAo5lGFJikrhMNwHv6AEAB20AAz0E
                    [file_unique_id] => AQADtB8AAo5lGFJy
                    [file_size] => 7016
                    [width] => 320
                    [height] => 129
                )

            [thumb] => Array
                (
                    [file_id] => AAMCBAADIQUABN0--BYAAzxqw15VLxLIxYp-WNnB3TgF748Z1gACtB8AAo5lGFJikrhMNwHv6AEAB20AAz0E
                    [file_unique_id] => AQADtB8AAo5lGFJy
                    [file_size] => 7016
                    [width] => 320
                    [height] => 129
                )

            [file_id] => BQACAgQAAyEFAATdPvgWAAM8asNeVS8SyMWKfljZwd04Be-PGdYAArQfAAKOZRhSYpK4TDcB7-g9BA
            [file_unique_id] => AgADtB8AAo5lGFI
            [file_size] => 29124
        )

)

----------------------------------------
2026-10-05 08:22:45 - Channel check
Array
(
    [chat_id] => -1003711891478
    [chat_username] => @tgltorubika
    [source_channel] => @tgltorubika
)

----------------------------------------
2026-10-05 08:22:45 - Checking if forwarded
Array
(
    [message_id] => 60
    [is_forwarded] => 
)

----------------------------------------
2026-10-05 08:22:45 - Message is from source channel and not forwarded, proceeding to forward
----------------------------------------
2026-10-05 08:22:45 - Forwarding to Rubika
Array
(
    [message_id] => 60
)

----------------------------------------
2026-10-05 08:22:45 - Type: Document message
----------------------------------------
2026-10-05 08:22:45 - Downloading file from Telegram
Array
(
    [file_id] => BQACAgQAAyEFAATdPvgWAAM8asNeVS8SyMWKfljZwd04Be-PGdYAArQfAAKOZRhSYpK4TDcB7-g9BA
)

----------------------------------------
2026-10-05 08:22:45 - getFile response
Array
(
    [ok] => 1
    [result] => Array
        (
            [file_id] => BQACAgQAAyEFAATdPvgWAAM8asNeVS8SyMWKfljZwd04Be-PGdYAArQfAAKOZRhSYpK4TDcB7-g9BA
            [file_unique_id] => AgADtB8AAo5lGFI
            [file_size] => 29124
            [file_path] => documents/file_1467.jpg
        )

)

----------------------------------------
2026-10-05 08:22:45 - Downloading from URL: https://api.telegram.org/file/bot8254045639:AAGcSuVM6yuHMZwkOxUM-79iu_Zd3YZI1eg/documents/file_1467.jpg
----------------------------------------
2026-10-05 08:22:45 - File saved to: /tmp/telegram_G3Xv55 (29124 bytes)
----------------------------------------
2026-10-05 08:22:45 - Uploading file to Rubika
Array
(
    [path] => /tmp/telegram_G3Xv55
    [type] => File
)

----------------------------------------
2026-10-05 08:22:45 - Calling Rubika API
Array
(
    [method] => requestSendFile
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/requestSendFile
    [data] => Array
        (
            [type] => File
        )

)

----------------------------------------
2026-10-05 08:22:46 - Rubika API response
Array
(
    [http_code] => 200
    [response] => {"status":"OK","data":{"upload_url":"https://messengerg2f1.rubika.ir/upload/UMv0iirmsdtopniolhlfznvoyvrluaksbkdv"}}
)

----------------------------------------
2026-10-05 08:22:46 - Got upload URL: https://messengerg2f1.rubika.ir/upload/UMv0iirmsdtopniolhlfznvoyvrluaksbkdv
----------------------------------------
2026-10-05 08:22:46 - Upload response
Array
(
    [http_code] => 200
    [response] => {"status":"OK","status_det":"OK","data":{"file_id":"eftXmFb105854583865299498337140677940032026100511"}}
)

----------------------------------------
2026-10-05 08:22:46 - Saving media mapping
Array
(
    [telegram_file_id] => BQACAgQAAyEFAATdPvgWAAM8asNeVS8SyMWKfljZwd04Be-PGdYAArQfAAKOZRhSYpK4TDcB7-g9BA
    [rubika_file_id] => eftXmFb105854583865299498337140677940032026100511
    [file_type] => document
)

----------------------------------------
2026-10-05 08:22:46 - Media mapping saved
----------------------------------------
2026-10-05 08:22:46 - Calling Rubika API
Array
(
    [method] => sendFile
    [url] => https://botapi.rubika.ir/v3/HFCAI0BJPWUEAPXGDGJTOFBKHLKIJEGLOIJHEFCVQCFIJZXEIWRFSLVIDVBZJZMJ/sendFile
    [data] => Array
        (
            [chat_id] => @getfromtelegram
            [file_id] => eftXmFb105854583865299498337140677940032026100511
            [text] => 
        )

)

----------------------------------------
2026-10-05 08:22:47 - Rubika API response
Array
(
    [http_code] => 200
    [response] => {"status":"INVALID_ACCESS"}
)

----------------------------------------
2026-10-05 09:41:29 - Database initialized successfully
----------------------------------------
2026-10-05 09:41:29 - Forwarder initialized
----------------------------------------
2026-10-05 09:41:29 - Raw webhook input
----------------------------------------
2026-10-05 09:41:29 - Invalid JSON received
----------------------------------------
2026-10-05 09:41:29 - Database initialized successfully
----------------------------------------
2026-10-05 09:41:29 - Forwarder initialized
----------------------------------------
2026-10-05 09:41:29 - Raw webhook input
----------------------------------------
2026-10-05 09:41:29 - Invalid JSON received
----------------------------------------
2026-10-07 07:54:32 - Database initialized successfully
----------------------------------------
2026-10-07 07:54:32 - Forwarder initialized
----------------------------------------
2026-10-07 07:54:32 - Raw webhook input
----------------------------------------
2026-10-07 07:54:32 - Invalid JSON received
----------------------------------------
