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

image

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

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

Response Data

{
	"exception": "AttributeError: __aenter__"
}