Skip to content

Webhook doesn't work after replace domain #299

Answered by ChillMouse
ChillMouse asked this question in Q&A
Discussion options

You must be logged in to vote

Config so important....

    'security' => [
        /*
         * if enabled, allows callback queries from unregistered chats
         */
        'allow_callback_queries_from_unknown_chats' => true,

        /*
         * if enabled, allows messages and commands from unregistered chats
         */
        'allow_messages_from_unknown_chats' => true, // <--- this important, before = false

        /*
         * if enabled, store unknown chats as new TelegraphChat models
         */
        'store_unknown_chats_in_db' => true,
    ],

And you must have in .env:

APP_URL=https://domain.com

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@ChillMouse
Comment options

@fabio-ivona
Comment options

@ChillMouse
Comment options

Comment options

You must be logged in to vote
1 reply
@Natanchik89
Comment options

Answer selected by fabio-ivona
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants