Skip to content

Instantly share code, notes, and snippets.

@Zmey56
Created August 23, 2022 12:12
Show Gist options
  • Save Zmey56/49d1d42597c5f989e39aaff71882727c to your computer and use it in GitHub Desktop.
Save Zmey56/49d1d42597c5f989e39aaff71882727c to your computer and use it in GitHub Desktop.
def feed_report(chat=None):
chat = chat or chat_id
bot = telegram.Bot(token=my_token)
msg = """ 📃Feed report for {data}📃
Events: {events}
🧑DAU: {users}({to_users_day_ago:+.2%} to day ago, {to_users_week_ago:+.2%} to week ago)
👍Likes: {liked}({to_likes_day_ago:+.2%} to day ago, {to_likes_week_ago:+.2%} to week ago)
👀Views: {views}({to_views_day_ago:+.2%} to day ago, {to_views_week_ago:+.2%} to week ago)
🌈CTR: {ctr}({to_ctr_day_ago:+.2%} to day ago, {to_ctr_week_ago:+.2%} to week ago)
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment