Ajaxy / telegram-tt

Telegram Web A, GPL v3
https://web.telegram.org/a
GNU General Public License v3.0
2.33k stars 495 forks source link

[Web Apps] `web_app_setup_main_button` does not update colors #229

Closed heyqbnk closed 1 year ago

heyqbnk commented 1 year ago

Call of web_app_setup_main_button does not update Main Button background and text colors.

Steps to reproduce

  1. Open Web Apps polygon bot (source code)
  2. Open developers tools (F12)
  3. Call Web Apps method:
    bridge.postEvent('web_app_setup_main_button', {
    text: 'Apply',
    text_color: '#00ff00',
    is_progress_visible: true,
    color: '#ff0000',
    is_visible: true,
    is_active: true
    });
  4. See colors not specified during method calling

Expected behaviour

Telegram application applies colors specified in method.

Ajaxy commented 1 year ago

Done.