【问题标题】:Telegram Web Apps method Expand isn't workingTelegram Web Apps 方法 Expand 不起作用
【发布时间】:2022-10-26 03:51:19
【问题描述】:

我发现 window.Telegram.WebApp 对象的 Expand 方法在计算机和平板电脑上的 Windows 和 IOS 的 Telegram 客户端中不起作用。 如何为这些设备增加 Web Apps 框架的大小?

【问题讨论】:

    标签: telegram telegram-bot


    【解决方案1】:

    尝试这个

    function testhandler(object){
        if (!this.isExpanded){
            this.expand()
        }
    }
    
    window.Telegram.WebApp.onEvent('mainButtonClicked', testhandler)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-07-31
      • 1970-01-01
      • 2013-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-27
      相关资源
      最近更新 更多