is the API key of telegram is same as bot id?

If you are referring to this code

“”“Configurations for”""
bolt_api_key = “XXXX” # This is your Bolt Cloud API Key
device_id = “XXXX” # This is the device ID and will be similar to BOLTXXXX where XXXX is some numbers
telegram_chat_id = “@XXXX” # This is the channel ID of the created Telegram channel. Paste after @
telegram_bot_id = “botXXXX” # This is the bot ID of the created Telegram Bot. Paste after bot
threshold = 250 # Threshold beyond which the alert should be sent

The bolt_api_key is same as we had used in earlier projects which is available on Bolt Cloud in the API section.

Thank you for your reply but i was referring to telegram’s API key

You mean Telegram API for creating a telegram application using C# then:

  • Sign up for Telegram using any application.
  • Log in to your Telegram core:
  • Go to ‘API development tools’ and fill out the form.
  • You will get basic addresses as well as the api_id and api_hash parameters required for user authorization.
  • For the moment each number can only have one api_id connected to it.

But to check API for Telegram Bot, you need to check it using BotFather.