Closed 23-yo-designer-from-san-francisco closed 4 years ago
That's not exactly what it takes.
In this solution, you repost each message after it sent in chat. The main idea to make a command
/repost
, for example, and this command could repost only news messages.
I don't really understand the idea.
Is this something like a repost
button in Telegram public chats?
Or it should behave like a button below the news
message which you can press when you see that the bot generated something funny and you want to share it with others by reposting it to mezuda
?
Or this command should generate hot_news
and send it to mezuda
?
Sure, sorry for the poor description of that task.
It's gonna be cool when you generate a new message by hot_news
command and get an ability to repost that message to Mezuda by the bot command, for example, as I thought you may reply to that message with text /repost
, and then the message will be reposted. But maybe there are more convenient ways, what do you think?
IMO, the best way to do this is to create a repost
button like shown on the screenshot
IMO, the best way to do this is to create a
repost
button like shown on the screenshot
Fine, let's do that way. Could we change that button after successful reposting to link to the Mezuda channel?
Could we change that button after successful reposting to link to the Mezuda channel?
I found the solution for Python on stackoverflow. So I think it's possible with Go
Could we change that button after successful reposting to link to the Mezuda channel?
I found the solution for Python on stackoverflow. So I think it's possible with Go
Sounds good, then do it. Thank you for a contribution.
This approach allows reposting news from the pm chat with bot. I tried making it for public chats, it's possible, but it might be complicated to change the button after reposting
This approach allows reposting news from the pm chat with bot. I tried making it for public chats, it's possible, but it might be complicated to change the button after reposting
Thanks for your contribution. Could you make the same PR to the staging
branch?
The ID in
config.yml.sample
ismezuda
channel ID. The bot should be the admin of the channel to be able to post messages.