Telegram Bot: How to delete/remove userpic of bot?
Asked Answered
B

3

5

I'm trying to remove the user picture of my telegram bot but there seems to be no option. Is it possible to delete/remove the userpic of a bot?

I know that I could upload any other photo via botfathers /setuserpic command but I want to simply remove the pic without any replacement.

Babarababassu answered 25/4, 2018 at 7:32 Comment(3)
Why don't just put an blank photo?Schlessinger
@Sean, that would be possible but as I wrote I want to delete and not replace it. Uploading a blank image feels like a workaround. :) But it seems that no other option for this is available at the moment.Babarababassu
Currently it seems that the botfather adds the new pic and the old pic also remains. When clicking on the bot image both pictures can be seen as a slider-gallery.Mucus
B
3
  • Open BotFather
  • /mybots
  • Select your bot
  • Click Edit
  • Click Edit Botpic
  • Send a new picture to Bot Father

Bot father will add the latest photo as Display Picture.

Note: Bot father does remove the old picture. After changing the profile picture... open your bot... and check dp from there... you'll see only the last updated one. Remember, if you check dp from the chat list(or Rows) you'll see earlier picture too. But that too gets removed once you open your bot and check dp from chat window!

Butacaine answered 27/1, 2022 at 19:4 Comment(0)
B
3

Currently there seems to be no way to remove the pic completely.

Babarababassu answered 1/12, 2019 at 22:17 Comment(1)
Wrong! Changes holds until restarting telegram! So change userpic and restart telegramDelegate
B
3
  • Open BotFather
  • /mybots
  • Select your bot
  • Click Edit
  • Click Edit Botpic
  • Send a new picture to Bot Father

Bot father will add the latest photo as Display Picture.

Note: Bot father does remove the old picture. After changing the profile picture... open your bot... and check dp from there... you'll see only the last updated one. Remember, if you check dp from the chat list(or Rows) you'll see earlier picture too. But that too gets removed once you open your bot and check dp from chat window!

Butacaine answered 27/1, 2022 at 19:4 Comment(0)
F
0

use deleteChatPhoto method. Pass your bot's id (included in the token string) in the chat_id parameter.

Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.

Parameter: chat_id

Flynn answered 13/6 at 14:11 Comment(2)
Does that deletes the botpic globally? Seems to me that this only changes the botpic for a single chat.Babarababassu
@MisterVanderbilt pass your bot's id, it deletes the bot profile itself as i mentioned in the post, you can find your bot id in the tokenFlynn

© 2022 - 2024 — McMap. All rights reserved.