pepeground / pososyamba_bot

It's a funny bot which can send "pososyamba" in your chat
3 stars 1 forks source link

Added the ability to repost news to mezuda channel #50

Closed 23-yo-designer-from-san-francisco closed 4 years ago

23-yo-designer-from-san-francisco commented 4 years ago

The ID in config.yml.sample is mezuda channel ID. The bot should be the admin of the channel to be able to post messages.

23-yo-designer-from-san-francisco commented 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?

thesunwave commented 4 years ago

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?

23-yo-designer-from-san-francisco commented 4 years ago

IMO, the best way to do this is to create a repost button like shown on the screenshot image

thesunwave commented 4 years ago

IMO, the best way to do this is to create a repost button like shown on the screenshot image

Fine, let's do that way. Could we change that button after successful reposting to link to the Mezuda channel?

23-yo-designer-from-san-francisco commented 4 years ago

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

thesunwave commented 4 years ago

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.

23-yo-designer-from-san-francisco commented 4 years ago

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

thesunwave commented 4 years ago

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?