Telegram Integration Error

i have done installation, but i get this error when i click on Get Chat ID button in Telegram User Settings Doctype


any solution ?

Can you post the full error

sorry @rk_root but full error means, console error ?

Yes Console error.
or you can copy the error from that popup by clicking Copy error to clipboard

hii @rk_root

App Versions

	"erpnext": "14.65.7",
	"erpnext_telegram_integration": "1.2.0",
	"frappe": "14.68.2",


Traceback (most recent call last):
  File "apps/frappe/frappe/", line 95, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/", line 55, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/", line 47, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/", line 85, in execute_cmd
    return, **frappe.form_dict)
  File "apps/frappe/frappe/", line 1611, in call
    return fn(*args, **newargs)
  File "apps/erpnext_telegram_integration/erpnext_telegram_integration/erpnext_telegram_integration/doctype/telegram_user_settings/", line 52, in get_chat_id_button
    chat_id =, telegram_token))
  File "/usr/lib/python3.10/asyncio/", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/", line 649, in run_until_complete
    return future.result()
  File "apps/erpnext_telegram_integration/erpnext_telegram_integration/erpnext_telegram_integration/doctype/telegram_user_settings/", line 60, in get_chat_id
    async with bot:
AttributeError: __aenter__

Response Data

	"exception": "AttributeError: __aenter__"