127 subscribers
1 photo
1 video
48 links
Python framework for Telegram bots
Download Telegram
I've just released botogram 0.1.1, which is a bugfix release for botogram 0.1. It's recommended to upgrade, and no breaking changes were made.

https://github.com/pietroalbini/botogram/releases/tag/v0.1.1
I'll release botogram 0.1.2 in the next days to fix a few issues. If you spotted another ones please report them!
I've just released botogram 0.1.2, which is a bugfix release for botogram 0.1 and 0.1.1. It's recommended to upgrade, and no breaking changes were made.

https://github.com/pietroalbini/botogram/releases/tag/v0.1.2
After a bunch of bugfixes released in botogram 0.1.1 and 0.1.2, I'm starting to work on botogram 0.2.

Some APIs will be deprecated in botogram 0.2, and either changed or renamed. This is done because I want to have a clear, beautiful API, and I regret some of the initial design choices. The deprecated APIs will keep working until 1.0, and warnings are in place so you know what to change.

Also, botogram 0.2 will include some new features (but not inline queries or keyboards yet). You can see the all the new stuff here:
https://github.com/pietroalbini/botogram/milestones/botogram%200.2

Feel free to comment on any issue, or reach me at @pietroalbini.
By the way, since commit e70a442 each code change I'll push to the repository is cryptographically signed with my GPG key, so you can check you're not using altered source code.

My GPG key: http://keyserver.ubuntu.com/pks/lookup?op=vindex&fingerprint=on&search=0x0490381A6F58BCDA
The implementation of @bot.when_blocked is now complete, I only need to write down a little bit of documentation. This allows you to react after you sent a message to an user who blocked your bot, and it will land in botogram 0.2.

Tracking issue:
https://github.com/pietroalbini/botogram/issues/23
I'm considering a change in @bot.when_blocked, which will also handle when your bot is kicked from a group chat or it's not an admin of a channel. Feedback is welcome :)

https://github.com/pietroalbini/botogram/issues/23
Big documentation update today! I've reorganized its structure a little bit, and added two whole new narrative chapters.

Check it out:
https://botogram.pietroalbini.io/docs/dev/
By the way, I'm working on (another) big project for school, so I'm a little busy :)
Another thing I added today to the 0.2 branch: User.name and Chat.name. Those computed attributes contains the best name botogram can find for the user/chat, for example if an user has both the first and last name the attribute contains the two merged together.

Check it out:
https://botogram.pietroalbini.io/docs/dev/api/telegram/#botogram.User.name
https://botogram.pietroalbini.io/docs/dev/api/telegram/#botogram.Chat.name
I've created a new supergroup for botogram users! You can use that to ask for help, give feedback and more :)

https://telegram.me/botogram_users
Just added support for fetching users' avatars! Check out the docs:
https://botogram.pietroalbini.io/docs/dev/search/?q=User.avatar
Today was a really productive day!

Other than merging support for fetching users' avatars, I fixed a bug with the Bot.send* methods, which prevented you from sending messages to channels with a running bot.

Stickers got some love too! You can now both download (it was documented, but not implemented, woops!) and send them. All of this will land in botogram 0.2.

Full changelog for the 0.2 release:
https://botogram.pietroalbini.io/docs/dev/changelog/
Today the /help command was fixed (it was broken on the development version), but a lot of things were suggested on the users' group chat. Feel free to join!

https://telegram.me/botogram_users
Just fixed another issue in the syntax detector: it was checking only the first line of the messages.
https://github.com/pietroalbini/botogram/issues/40

The fix should land in botogram 0.2, but if you're affected by this just override the syntax manually.
Another issue was fixed in the master branch: now commands with newlines in the arguments are recognized as such correctly!
https://github.com/pietroalbini/botogram/issues/41

The fix should land in botogram 0.2.
Hey there! Today a nasty bug was fixed, so there are no more blank items in args! There was also a minor typo in the README fixed by thesharp.

All the default messages of botogram were also changed! Now most of the messages includes rich formatting, so they're now prettier.

Because of the default messages changes, if you're running the development version and you've installed it with invoke devel you need to run the following command after fetching the changes:
$ invoke i18n-compile

botogram 0.2 is nearby, stay tuned!
By the way, thesharp added also support for sending messages without notifying the user! Congrats!
A nasty compatibility bug was fixed today, and thesharp did the last change before botogram 0.2!

Now, Message.from_ is called Message.sender. The old syntax will keep to work until botogram 1.0, and deprecation warnings are in place.

Expect botogram 0.2 to be out next monday/tuesday \o/
Hey there, look at what is out today: botogram 0.2!

botogram 0.2 is the second alpha release of botogram. It features an increased support for the upstream Telegram API, and also some bugfixes here and there.
This release also does some cleanup in the API, providing better methods and deprecating the old ones. The deprecated methods will be available until botogram 1.0, and warnings are in place to notify you where to change what.

Update it right now:
# Linux and OSX
$ python3 -m pip install -U "botogram==0.2"

# Windows
C:\> py -3 -m pip install -U "botogram==0.2"


If you notice any issues with the new release feel free to report them in the issue tracker, and if you want to discuss about new features for botogram 0.3 hop into the @botogram_users group!