WebApp Repair
Hello!
Problem Description:
I developed a Telegram bot based on the python-telegram-bot (version 20+) library, which has a button with web_app=WebAppInfo(url=...). This button opens a page (WebApp) hosted on GitHub Pages at https://danza13.github.io/telegram-webapp/.
What Happens:
- When the page opens inside Telegram (via the "Select date and time" button), it displays correctly and calls
window.Telegram.WebApp.sendData(...). - Popup messages (
alert) appear on the screen confirming that the page is trying to send data. - However, in the bot's logs (on the Python side), no updates of type
web_app_dataappear. That is, theweb_app_data_handleris not called at all. - As a result, the bot "hangs" at the date and time selection step and does not proceed to the next question ("Number of guests").
Checked Steps:
- In
BotFather, I added the domain in the settings:- (I confirm that the
Domainfield containsdanza13.github.iowithouthttps://and without/telegram-webapp/.)
- (I confirm that the
- In the
.envfile, the value ofWEB_APP_URLis set to the full pathhttps://danza13.github.io/telegram-webapp/. - In
index.html, there is a checkif (window.Telegram && window.Telegram.WebApp), the page opens in Telegram, sowindow.Telegram.WebAppexists. - On the frontend,
tg.sendData(...)is called, wheretg = window.Telegram.WebApp. - The bot's logs show that after pressing "Confirm," no new Update is received from Telegram.
What the Problem Is:
It seems that Telegram does not "trust" my domain and does not send any WebApp data, or the domain settings in BotFather are not working correctly. As a result, sendData() leads to nothing (the bot does not receive the event).
Please help to figure out why the data from sendData() does not reach the web_app_data_handler and what else should be checked or configured for the WebApp to fully send data to the bot.
Applications 1
-
258 Good day, I am ready to help for a lower amount, I have experience in writing Telegram bots, I would be happy to collaborate, write for more detailed discussion.
-
227 Good afternoon, I have a lot of experience in solving problems, I can fix this but with some changes, I can show you what I have done and if you like it then you pay me and if not then you don't.
-
290 3 1 I am a versatile specialist with experience in IT, crypto trading, and development. Throughout my career, I have learned to quickly adapt to new challenges and effectively solve tasks of any complexity. From setting up Telegram bots to creating cryptocurrency courses — my goal is always to be at the forefront of technology and help clients achieve their goals. I am always open to new ideas and ready to work both with large teams and on an individual basis.
-
96304 1273 1 10 Hello. I have extensive experience in developing Telegram bots. I am ready to collaborate.
-
267 3 0 check if the CORS headers are correctly configured on your GitHub Pages.
-
363 9 0 Good evening, I have been working on developing bots with the Telegram API, I have one of the possible solutions for this task. We can agree on the price.
Current freelance projects in the category HTML & CSS
Front-end development and UI/UX + CMSWhat needs to be done: Front-end development and UI/UX implementation Responsive HTML/CSS layout according to the approved design template. Setting up interactive interface elements (micro-animations, hover effects, smooth transitions). Ensuring cross-browser compatibility… HTML & CSS ∙ 23 minutes back ∙ 12 proposals |
Transfer of the website to Shopify
25 USD
We need to transfer the current website jdfurniture.uk from OpenCart to the Shopify platform. The current OpenCart site generally meets our needs in terms of structure and functionality. The main reason for the transfer is issues with payment systems. There should be no such… HTML & CSS, Web Programming ∙ 14 hours 23 minutes back ∙ 25 proposals |
Transfer of design to WordPress
45 USD
Good day! It is necessary to transfer the finished design of a one-page landing page to WordPress. The layout is fully ready (Figma), no design development is needed. It is required to code the page quality, adapt it for mobile devices, and set it up on WordPress. Please… HTML & CSS ∙ 20 hours 9 minutes back ∙ 94 proposals |
Output posts from Instagram to the website (OpenCart)
16 USD
Hello. I need to set up functionality so that a block with Instagram posts appears on the site (OpenCart). Please respond if you have done this and know how to do it :) Thank you :) We will agree on the price, I don't know how much it costs. HTML & CSS, Web Programming ∙ 23 hours 46 minutes back ∙ 46 proposals |
Landing page for an English school
301 USD
We are looking for a designer + landing page developer (Wix / WordPress / Weblium) Hello! We are looking for a performer for the design and layout of a landing page for an English language course. What is needed: — design and layout of a landing page with 12 blocks; —… HTML & CSS, Interface Design (UI/UX) ∙ 1 day 2 hours back ∙ 121 proposals |