BotsArchive (@BotsArchive) - Telegram
đ¤ New bot đ Name: Member Sticker Bot đ Username: @member_sticker_bot âī¸ Rating:...
đ¤New bot
đName: Member Sticker Bot
đUsername: @member_sticker_bot
âī¸Rating: âī¸âī¸âī¸(3.4/5 on 25 votes)
âââ
âšī¸Description: This bot sends stickers to greet channel members when a specific number of members is reached
đLanguages: English
đŦSupports inline: no
đĨGroups: yes
#ī¸âŖTags: #AdminTools #Group #member #count #sticker
đ¤ New bot đ Name: Member Sticker Bot đ Username: @member_sticker_bot âī¸ Rating:...
đ¤New bot
đName: Member Sticker Bot
đUsername: @member_sticker_bot
âī¸Rating: âī¸âī¸âī¸(3.4/5 on 25 votes)
âââ
âšī¸Description: This bot sends stickers to greet channel members when a specific number of members is reached
đLanguages: English
đŦSupports inline: no
đĨGroups: yes
#ī¸âŖTags: #AdminTools #Group #member #count #sticker
Telegram bot api: InlineQueryResultVideo doesn't work
0I am writing a bot in python version 3.11 using the PyTelegramBotApi 4.10.0 (import telebot) library. I am trying to make inline sending videos like this telegram bot: @ vid (delete space after'@') . But it doesn't work.I am trying to do it in two ways:The first way is through mime_type="video/mp4". In this case, inline lines with video appear in the application, but after clicking on the video, this video enters the chat as a file with a download icon and an exclamation mark of sending failure appears.The second way is through mime_type = "text/html". In this case, an error occurs in the console application of my bot: "A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: SEND_MESSAGE_MEDIA_INVALID" What am I doing wrong?P.S. variables cur_video_url, cur_thumb_url, cur_title, cur_caption, cur_duration are correct, I checked, but it's not difficult for me to check againI was already able to implement a similar InlineQueryResultPhoto - everything works fine there. But with the video - trouble.
Submitted March 16, 2023 at 06:00PM by Nevillested
on r/TelegramBots via https://www.reddit.com/r/TelegramBots/comments/11szqve/telegram_bot_api_inlinequeryresultvideo_doesnt/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
0I am writing a bot in python version 3.11 using the PyTelegramBotApi 4.10.0 (import telebot) library. I am trying to make inline sending videos like this telegram bot: @ vid (delete space after'@') . But it doesn't work.I am trying to do it in two ways:The first way is through mime_type="video/mp4". In this case, inline lines with video appear in the application, but after clicking on the video, this video enters the chat as a file with a download icon and an exclamation mark of sending failure appears.The second way is through mime_type = "text/html". In this case, an error occurs in the console application of my bot: "A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: SEND_MESSAGE_MEDIA_INVALID" What am I doing wrong?P.S. variables cur_video_url, cur_thumb_url, cur_title, cur_caption, cur_duration are correct, I checked, but it's not difficult for me to check againI was already able to implement a similar InlineQueryResultPhoto - everything works fine there. But with the video - trouble.
def inline_mode_processed(bot, query): current_query = query.query results = [] cnt = 0 html = urllib2.urlopen("https://www.youtube.com/results?search_query=" + current_query) video_ids = re.findall(r"watch\?v=(\S{11})", html.read().decode()) video_ids = common_methods.unique_list_from_list(video_ids) #method that returns a list with unique values for item in video_ids: cur_video_url = "https://www.youtube.com/watch?v=" + str(item) cur_video = YouTube(cur_video_url) cur_thumb_url = cur_video.thumbnail_url cur_title = cur_video.title cur_caption = 'ĐаŅа ĐŋŅĐąĐģиĐēаŅии: ' + str(cur_video.publish_date.strftime("%b %d %Y")) cur_duration = cur_video.length msg = telebot.types.InlineQueryResultVideo( id = str(cnt), video_url = cur_video_url, mime_type = "video/mp4", #"text/html" thumb_url = cur_thumb_url, title = cur_title, caption = cur_caption, video_duration = cur_duration ) results.append(msg) if cnt == 2: #count of items in telegram inline mode break cnt += 1 bot.answer_inline_query(query.id, results, cache_time = 5)
Submitted March 16, 2023 at 06:00PM by Nevillested
on r/TelegramBots via https://www.reddit.com/r/TelegramBots/comments/11szqve/telegram_bot_api_inlinequeryresultvideo_doesnt/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
Reddit
r/TelegramBots on Reddit: Telegram bot api: InlineQueryResultVideo doesn't work
Posted by u/Nevillested - No votes and no comments
đ¤ New bot
đ Name: wordcounterbot
đ Username: @wordcounterbot
âī¸ Rating: âī¸âī¸âī¸âī¸ (4.4/5 on 271 votes)
âââ
âšī¸Description: Counts the number of words in a text message quickly. Supports inline mode which allows you to count the number of words in the message field in real time. No ads and free for all.
đ Languages: English
đŦ Supports inline: yes
đĨ Groups: no
#ī¸âŖ Tags: #textcounter #wordcounter #count #counterbot #wordcounterbot #inline
đ Name: wordcounterbot
đ Username: @wordcounterbot
âī¸ Rating: âī¸âī¸âī¸âī¸ (4.4/5 on 271 votes)
âââ
âšī¸Description: Counts the number of words in a text message quickly. Supports inline mode which allows you to count the number of words in the message field in real time. No ads and free for all.
đ Languages: English
đŦ Supports inline: yes
đĨ Groups: no
#ī¸âŖ Tags: #textcounter #wordcounter #count #counterbot #wordcounterbot #inline