usememos / telegram-integration

Memogram is an easy to use integration service for syncing messages and images from a Telegram bot into your Memos.
78 stars 20 forks source link

无法连接到TG #30

Closed le0zh0u closed 2 months ago

le0zh0u commented 3 months ago

我在国内的机器上运行这个项目,在env中配置了address和token,执行./memogram后,出现以下异常:

panic: failed to create bot: error call getMe, error do request for method getMe, Post "https://api.telegram.org/BOT_TOKEN/getMe": context deadline exceeded

goroutine 1 [running]:
main.main()
    /home/runner/work/telegram-integration/telegram-integration/bin/memogram/main.go:13 +0x54

应该是国内无法访问TG导致,可以支持通过PROXY_URL/botxxxxxx的方式连接到TG吗

ruohai commented 3 months ago

碰到了同样的问题,希望可以在.env文件中设定HTTP_PROXY/HTTPS_PROXY。